Skip to content

Commit 2b95b3d

Browse files
Fixes for Flutter 3.24.0
1 parent 0b2358c commit 2b95b3d

10 files changed

Lines changed: 10 additions & 10 deletions

lib/ui/views/bibles/bibles_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BiblesView extends StackedView<BiblesViewModel> {
2424
bool isPortrait = isPortraitOrientation(context);
2525
return PopScope(
2626
canPop: false,
27-
onPopInvoked: viewModel.onPopInvoked,
27+
onPopInvokedWithResult: viewModel.onPopInvoked,
2828
child: Scaffold(
2929
backgroundColor: context.theme.appColors.background,
3030
appBar: AppBar(

lib/ui/views/bibles/bibles_viewmodel.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BiblesViewModel extends BaseViewModel {
3838
rebuildUi();
3939
}
4040

41-
void onPopInvoked(bool onPopInvoked) async {
41+
void onPopInvoked(bool didPop, Object? result) async {
4242
_navigationService.clearStackAndShow(Routes.readerView);
4343
}
4444
}

lib/ui/views/bookmarks/bookmarks_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class BookmarksView extends StackedView<BookmarksViewModel> {
1919
bool isPortrait = isPortraitOrientation(context);
2020
return PopScope(
2121
canPop: false,
22-
onPopInvoked: viewModel.onPopInvoked,
22+
onPopInvokedWithResult: viewModel.onPopInvoked,
2323
child: Scaffold(
2424
backgroundColor: context.theme.appColors.background,
2525
appBar: AppBar(

lib/ui/views/bookmarks/bookmarks_viewmodel.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class BookmarksViewModel extends BaseViewModel {
1717
await _settingsService.setBookmarks(allBookmarks);
1818
}
1919

20-
void onPopInvoked(bool onPopInvoked) async {
20+
void onPopInvoked(bool didPop, Object? result) async {
2121
_navigationService.clearStackAndShow(Routes.readerView);
2222
}
2323
}

lib/ui/views/navigation_bible_divisions/navigation_bible_divisions_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class NavigationBibleDivisionsView extends StackedView<NavigationBibleDivisionsV
2424
) {
2525
return PopScope(
2626
canPop: false,
27-
onPopInvoked: viewModel.onPopInvoked,
27+
onPopInvokedWithResult: viewModel.onPopInvoked,
2828
child: Scaffold(
2929
backgroundColor: context.theme.appColors.background,
3030
appBar: AppBar(

lib/ui/views/navigation_bible_divisions/navigation_bible_divisions_viewmodel.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class NavigationBibleDivisionsViewModel extends BaseViewModel {
4646
_navigationService.navigateToNavigationSectionsChaptersView(readerArea: readerArea, bookCode: bookCode);
4747
}
4848

49-
void onPopInvoked(bool onPopInvoked) async {
49+
void onPopInvoked(bool didPop, Object? result) async {
5050
_navigationService.clearStackAndShow(Routes.readerView);
5151
}
5252
}

lib/ui/views/search/search_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SearchView extends StackedView<SearchViewModel> {
1717
bool isPortrait = isPortraitOrientation(context);
1818
return PopScope(
1919
canPop: false,
20-
onPopInvoked: viewModel.onPopInvoked,
20+
onPopInvokedWithResult: viewModel.onPopInvoked,
2121
child: Scaffold(
2222
backgroundColor: context.theme.appColors.background,
2323
appBar: AppBar(

lib/ui/views/search/search_viewmodel.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import '../../../app/app.router.dart';
77
class SearchViewModel extends BaseViewModel {
88
final _navigationService = locator<NavigationService>();
99

10-
void onPopInvoked(bool onPopInvoked) async {
10+
void onPopInvoked(bool didPop, Object? result) async {
1111
_navigationService.clearStackAndShow(Routes.readerView);
1212
}
1313
}

lib/ui/views/settings/settings_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SettingsView extends StackedView<SettingsViewModel> {
2222
bool isPortrait = isPortraitOrientation(context);
2323
return PopScope(
2424
canPop: false,
25-
onPopInvoked: viewModel.onPopInvoked,
25+
onPopInvokedWithResult: viewModel.onPopInvoked,
2626
child: Scaffold(
2727
appBar: AppBar(
2828
backgroundColor: context.theme.appColors.background,

lib/ui/views/settings/settings_viewmodel.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SettingsViewModel extends FutureViewModel<String> {
3838
return 'v$appVersion';
3939
}
4040

41-
void onPopInvoked(bool onPopInvoked) async {
41+
void onPopInvoked(bool didPop, Object? result) async {
4242
_navigationService.clearStackAndShow(Routes.readerView);
4343
}
4444
}

0 commit comments

Comments
 (0)