diff --git a/lib/ui/views/home/home_view.dart b/lib/ui/views/home/home_view.dart index 6e76ea3ef8..c9770861ef 100644 --- a/lib/ui/views/home/home_view.dart +++ b/lib/ui/views/home/home_view.dart @@ -21,7 +21,9 @@ class HomeView extends StatelessWidget { viewModelBuilder: () => locator(), builder: (context, model, child) => Scaffold( body: RefreshIndicator( - onRefresh: () => model.forceRefresh(context), + edgeOffset: 110.0, + displacement: 10.0, + onRefresh: () async => await model.forceRefresh(context), child: CustomScrollView( slivers: [ CustomSliverAppBar( diff --git a/lib/ui/views/home/home_viewmodel.dart b/lib/ui/views/home/home_viewmodel.dart index 65d47871e8..f9f4ec638c 100644 --- a/lib/ui/views/home/home_viewmodel.dart +++ b/lib/ui/views/home/home_viewmodel.dart @@ -500,8 +500,8 @@ class HomeViewModel extends BaseViewModel { } Future forceRefresh(BuildContext context) async { - _managerAPI.clearAllData(); + await _managerAPI.clearAllData(); + await initialize(context); _toast.showBottom(t.homeView.refreshSuccess); - initialize(context); } }