Skip to content

Commit

Permalink
style: lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelongqy committed Apr 25, 2024
1 parent 542873a commit 857442e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions example/lib/page/sample/test_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class _TestPageState extends State<TestPage> {
controlFinishRefresh: true,
);

final _scrollController = ScrollController();
// final _scrollController = ScrollController();

@override
void initState() {
Expand Down Expand Up @@ -71,28 +71,24 @@ class _TestPageState extends State<TestPage> {
maxOverOffset: 100,
),
onRefresh: () async {
print('Refreshing');
await Future.delayed(const Duration(seconds: 2));
if (!mounted) {
return null;
}
setState(() {
_count = 10;
});
print('Refreshed');
_controller.finishRefresh(IndicatorResult.success);
return IndicatorResult.success;
},
onLoad: () async {
print('Loading');
await Future.delayed(const Duration(seconds: 2));
if (!mounted) {
return null;
}
setState(() {
_count += 0;
});
print('Loaded');
// return IndicatorResult.noMore;
},
// child: ListView.builder(
Expand Down

0 comments on commit 857442e

Please sign in to comment.