Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
proninyaroslav committed Aug 10, 2024
1 parent 32b984c commit 1164b36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
11 changes: 4 additions & 7 deletions lib/ui/app_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,17 +212,14 @@ class AppRouterDelegate extends RouterDelegate<AppRoutePath>

@override
Widget build(BuildContext context) {
final pages = _buildPages(context);

return Navigator(
key: navigatorKey,
reportsRouteUpdateToEngine: true,
pages: _buildPages(context),
onPopPage: (route, result) {
if (!route.didPop(result)) {
return false;
}
pages: pages,
onDidRemovePage: (page) {
_popState();

return true;
},
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/home/navigation_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ class _ContextualAppBar extends StatelessWidget {
Widget build(BuildContext context) {
return PopScope(
canPop: false,
onPopInvoked: (didPop) async {
onPopInvokedWithResult: (didPop, result) async {
onBackPressed?.call();
},
child: AppBar(
Expand Down
7 changes: 1 addition & 6 deletions lib/ui/settings/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,8 @@ class _SettingsRouterDelegate extends RouterDelegate<AppRoutePathSettings>
key: navigatorKey,
reportsRouteUpdateToEngine: true,
pages: _buildPages(context),
onPopPage: (route, result) {
if (!route.didPop(result)) {
return false;
}
onDidRemovePage: (page) {
_currentState = const _SettingsRouterState.home();

return true;
},
);
}
Expand Down

0 comments on commit 1164b36

Please sign in to comment.