Skip to content

Commit 46a9c58

Browse files
committed
migrate deprecated widget
1 parent 34b8020 commit 46a9c58

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/core/injection.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import 'package:campus_app/utils/pages/calendar_utils.dart';
1818
import 'package:campus_app/utils/pages/feed_utils.dart';
1919
import 'package:campus_app/utils/pages/main_utils.dart';
2020
import 'package:campus_app/utils/pages/mensa_utils.dart';
21+
import 'package:campus_app/utils/pages/wallet_utils.dart';
2122
import 'package:cookie_jar/cookie_jar.dart';
2223
import 'package:dio/dio.dart';
2324
import '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

lib/pages/home/home_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)