Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): increase dashboard RefreshIndicator edge offset #1859

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/ui/views/home/home_view.dart
Expand Up @@ -20,7 +20,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(
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/views/home/home_viewmodel.dart
Expand Up @@ -492,8 +492,8 @@ class HomeViewModel extends BaseViewModel {
}

Future<void> forceRefresh(BuildContext context) async {
_managerAPI.clearAllData();
await _managerAPI.clearAllData();
await initialize(context);
Domenic-MZS marked this conversation as resolved.
Show resolved Hide resolved
_toast.showBottom(t.homeView.refreshSuccess);
initialize(context);
}
}