Skip to content

Commit

Permalink
Update main.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCoduriV committed Jul 13, 2021
1 parent b6e8f7f commit 4561023
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,14 @@ class MyApp extends StatelessWidget {
VGuard(
beforeEnter: (stackedRoutes) async {
GetIt.I<DrawerProvider>().title = 'Notes';
if (GetIt.I<BulletinProvider>()
.bulletin
.branches
.isEmpty) {
Future.delayed(
const Duration(
milliseconds: 500,
),
() => GetIt.I<GlobalKey<RefreshIndicatorState>>()
.currentState
?.show());
}

Future.delayed(
const Duration(
milliseconds: 500,
),
() => GetIt.I<GlobalKey<RefreshIndicatorState>>()
.currentState
?.show());
},
stackedRoutes: [
VWidget(
Expand Down

0 comments on commit 4561023

Please sign in to comment.