mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix: Increase dashboard RefreshIndicator edge offset (#1859)
This commit is contained in:
parent
694f2a9fae
commit
232b702789
2 changed files with 5 additions and 3 deletions
|
@ -21,7 +21,9 @@ class HomeView extends StatelessWidget {
|
|||
viewModelBuilder: () => locator<HomeViewModel>(),
|
||||
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: <Widget>[
|
||||
CustomSliverAppBar(
|
||||
|
|
|
@ -500,8 +500,8 @@ class HomeViewModel extends BaseViewModel {
|
|||
}
|
||||
|
||||
Future<void> forceRefresh(BuildContext context) async {
|
||||
_managerAPI.clearAllData();
|
||||
await _managerAPI.clearAllData();
|
||||
await initialize(context);
|
||||
_toast.showBottom(t.homeView.refreshSuccess);
|
||||
initialize(context);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue