Cupertino nav bar transitions between routes (#20322)
This commit is contained in:
@@ -55,7 +55,11 @@ class _CupertinoRefreshControlDemoState extends State<CupertinoRefreshControlDem
|
||||
new CupertinoSliverRefreshControl(
|
||||
onRefresh: () {
|
||||
return new Future<void>.delayed(const Duration(seconds: 2))
|
||||
..then((_) => setState(() => repopulateList()));
|
||||
..then((_) {
|
||||
if (mounted) {
|
||||
setState(() => repopulateList());
|
||||
}
|
||||
});
|
||||
},
|
||||
),
|
||||
new SliverSafeArea(
|
||||
|
||||
Reference in New Issue
Block a user