|
|
|
@ -39,11 +39,13 @@ class MemoryPage extends HookConsumerWidget {
|
|
|
|
/// The main vertically scrolling page controller with each list of memories
|
|
|
|
/// The main vertically scrolling page controller with each list of memories
|
|
|
|
final memoryPageController = usePageController(initialPage: memoryIndex);
|
|
|
|
final memoryPageController = usePageController(initialPage: memoryIndex);
|
|
|
|
|
|
|
|
|
|
|
|
// The Page Controller that scrolls horizontally with all of the assets
|
|
|
|
|
|
|
|
useEffect(() {
|
|
|
|
useEffect(() {
|
|
|
|
// Memories is an immersive activity
|
|
|
|
// Memories is an immersive activity
|
|
|
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
|
|
|
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
|
|
|
|
return null;
|
|
|
|
return () {
|
|
|
|
|
|
|
|
// Clean up to normal edge to edge when we are done
|
|
|
|
|
|
|
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
|
|
|
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
toNextMemory() {
|
|
|
|
toNextMemory() {
|
|
|
|
@ -159,12 +161,7 @@ class MemoryPage extends HookConsumerWidget {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Scaffold(
|
|
|
|
child: Scaffold(
|
|
|
|
backgroundColor: bgColor,
|
|
|
|
backgroundColor: bgColor,
|
|
|
|
body: PopScope(
|
|
|
|
body: SafeArea(
|
|
|
|
onPopInvoked: (didPop) {
|
|
|
|
|
|
|
|
// Remove immersive mode and go back to normal mode
|
|
|
|
|
|
|
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: SafeArea(
|
|
|
|
|
|
|
|
child: PageView.builder(
|
|
|
|
child: PageView.builder(
|
|
|
|
physics: const BouncingScrollPhysics(
|
|
|
|
physics: const BouncingScrollPhysics(
|
|
|
|
parent: AlwaysScrollableScrollPhysics(),
|
|
|
|
parent: AlwaysScrollableScrollPhysics(),
|
|
|
|
@ -282,7 +279,6 @@ class MemoryPage extends HookConsumerWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|