mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
[Chore] Update flutter to 3.24
This commit is contained in:
parent
f59a08fa6f
commit
1b5d751855
11 changed files with 23 additions and 23 deletions
|
|
@ -78,7 +78,7 @@ class _BookViewerScreenState extends ConsumerState<BookViewerScreen> {
|
|||
data: ThemesData.of(context).dark,
|
||||
child: PopScope(
|
||||
canPop: true,
|
||||
onPopInvoked: (didPop) async {
|
||||
onPopInvokedWithResult: (didPop, result) async {
|
||||
await ref.read(bookViewerProvider.notifier).stopPlayback();
|
||||
},
|
||||
child: Scaffold(
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ class _LibrarySearchScreenState extends ConsumerState<LibrarySearchScreen> {
|
|||
|
||||
return PopScope(
|
||||
canPop: !librarySearchResults.selecteMode,
|
||||
onPopInvoked: (popped) async {
|
||||
onPopInvokedWithResult: (didPop, result) {
|
||||
if (librarySearchResults.selecteMode) {
|
||||
libraryProvider.toggleSelectMode();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ class _LockScreenState extends ConsumerState<LockScreen> with WidgetsBindingObse
|
|||
final user = ref.watch(userProvider);
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (didPop) {
|
||||
onPopInvokedWithResult: (didPop, result) {
|
||||
if (!poppingLockScreen) {
|
||||
SystemNavigator.pop();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class _PhotoViewerControllsState extends ConsumerState<PhotoViewerControls> with
|
|||
|
||||
final padding = MediaQuery.of(context).padding;
|
||||
return PopScope(
|
||||
onPopInvoked: (popped) async {
|
||||
onPopInvokedWithResult: (didPop, result) async {
|
||||
await WakelockPlus.disable();
|
||||
},
|
||||
child: KeyboardListener(
|
||||
|
|
|
|||
|
|
@ -143,7 +143,8 @@ class _PhotoViewerScreenState extends ConsumerState<PhotoViewerScreen> with Widg
|
|||
return Theme(
|
||||
data: ThemesData.of(context).dark,
|
||||
child: PopScope(
|
||||
onPopInvoked: (popped) async => SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge, overlays: []),
|
||||
onPopInvokedWithResult: (didPop, result) =>
|
||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge, overlays: []),
|
||||
child: MouseRegion(
|
||||
opaque: AdaptiveLayout.of(context).isDesktop,
|
||||
onEnter: (event) => setState(() => _showOverlay(show: true)),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import 'package:ficonsax/ficonsax.dart';
|
||||
import 'package:fladder/screens/shared/animated_fade_size.dart';
|
||||
import 'package:fladder/util/localization_helper.dart';
|
||||
import 'package:fladder/widgets/navigation_scaffold/components/settings_user_icon.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
|
@ -75,7 +74,7 @@ class _DetailScreenState extends ConsumerState<DetailScreen> {
|
|||
offset: const Offset(0, -5), child: FladderImage(image: widget.item?.getPosters?.primary)),
|
||||
),
|
||||
),
|
||||
AnimatedFadeSize(
|
||||
AnimatedSwitcher(
|
||||
duration: const Duration(seconds: 1),
|
||||
child: currentWidget,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
},
|
||||
child: PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (didPop) {
|
||||
onPopInvokedWithResult: (didPop, result) {
|
||||
if (!didPop) {
|
||||
closePlayer();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class _NavigationScaffoldState extends ConsumerState<NavigationScaffold> {
|
|||
final views = ref.watch(viewsProvider.select((value) => value.views));
|
||||
return PopScope(
|
||||
canPop: currentIndex == 0,
|
||||
onPopInvoked: (didPop) {
|
||||
onPopInvokedWithResult: (didPop, result) {
|
||||
if (currentIndex != 0) {
|
||||
widget.destinations.first.action!();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue