File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import 'package:campus_app/utils/pages/calendar_utils.dart';
1818import 'package:campus_app/utils/pages/feed_utils.dart' ;
1919import 'package:campus_app/utils/pages/main_utils.dart' ;
2020import 'package:campus_app/utils/pages/mensa_utils.dart' ;
21+ import 'package:campus_app/utils/pages/wallet_utils.dart' ;
2122import 'package:cookie_jar/cookie_jar.dart' ;
2223import 'package:dio/dio.dart' ;
2324import 'package:flutter_secure_storage/flutter_secure_storage.dart' ;
@@ -60,6 +61,7 @@ Future<void> init() async {
6061 sl.registerLazySingleton (FeedUtils .new );
6162 sl.registerLazySingleton (MensaUtils .new );
6263 sl.registerLazySingleton (MainUtils .new );
64+ sl.registerLazySingleton (WalletUtils .new );
6365
6466 //!
6567 //! Datasources
Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ class HomePageState extends State<HomePage> {
200200 : Provider .of <ThemesNotifier >(context, listen: false ).currentTheme == AppThemes .light
201201 ? lightTabletSystemUiStyle
202202 : darkTabletSystemUiStyle,
203- child: WillPopScope (
204- onWillPop : () async => ! await navigatorKeys[currentPage]! .currentState! .maybePop (),
203+ child: NavigatorPopHandler (
204+ onPop : () => navigatorKeys[currentPage]! .currentState! .pop (),
205205 child: Scaffold (
206206 resizeToAvoidBottomInset: false ,
207207 backgroundColor: Provider .of <ThemesNotifier >(context).currentThemeData.colorScheme.background,
You can’t perform that action at this time.
0 commit comments