Fix navigation bar color in slideshow viewer

This commit is contained in:
Ming Ming 2024-08-10 02:17:09 +08:00
parent 43ddf28d56
commit fd57dd562f

View file

@ -118,8 +118,14 @@ class _WrappedSlideshowViewerState extends State<_WrappedSlideshowViewer>
Widget build(BuildContext context) {
return Theme(
data: buildDarkTheme(context),
child: const Scaffold(
body: _Body(),
child: const AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle(
systemNavigationBarColor: Colors.black,
systemNavigationBarIconBrightness: Brightness.dark,
),
child: Scaffold(
body: _Body(),
),
),
);
}