[Chore] Update flutter to 3.24

This commit is contained in:
PartyDonut 2024-09-24 21:59:52 +02:00
parent f59a08fa6f
commit 1b5d751855
11 changed files with 23 additions and 23 deletions

View file

@ -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(

View file

@ -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)),