Skip to content

Commit

Permalink
update flutter_data and offline retry switched on
Browse files Browse the repository at this point in the history
  • Loading branch information
andreacioni committed Jun 15, 2024
1 parent 09bcb3f commit d14bea2
Show file tree
Hide file tree
Showing 30 changed files with 617 additions and 427 deletions.
4 changes: 4 additions & 0 deletions apps/weekly_menu_app/lib/providers/bootstrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@ final bootstrapDependenciesProvider = FutureProvider<void>((ref) async {
}
}

// to start retrying background tasks
final _sub = ref.listen(offlineRetryProvider, (_, __) {});
ref.onDispose(() => _sub.close());

log("initialization done");
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class DailyMenuSectionStreamWrapper extends HookConsumerWidget {
return RepositoryStreamBuilder<DailyMenu>(
key: ValueKey(date.formatId()),
stream: stream,
loading: const DefaultShimmer(),
loading: NewDailyMenuNotifierWrapper(
date,
key: Key(date.formatId()),
),
errorBuilder: (context, error) {
if (error != null) {
if (error is DataException && error.statusCode == 404) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d14bea2

Please sign in to comment.