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) { Widget build(BuildContext context) {
return Theme( return Theme(
data: buildDarkTheme(context), data: buildDarkTheme(context),
child: const Scaffold( child: const AnnotatedRegion<SystemUiOverlayStyle>(
body: _Body(), value: SystemUiOverlayStyle(
systemNavigationBarColor: Colors.black,
systemNavigationBarIconBrightness: Brightness.dark,
),
child: Scaffold(
body: _Body(),
),
), ),
); );
} }