Set nav bar to black in viewer

This commit is contained in:
Ming Ming 2023-08-05 03:51:28 +08:00
parent b403609f07
commit 46460e99e9

View file

@ -121,15 +121,22 @@ class _ViewerState extends State<Viewer>
final originalBrightness = Theme.of(context).brightness; final originalBrightness = Theme.of(context).brightness;
return Theme( return Theme(
data: buildDarkTheme(), data: buildDarkTheme(),
child: AnnotatedRegion<SystemUiOverlayStyle>(
value: const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.black,
systemNavigationBarIconBrightness: Brightness.dark,
),
child: Scaffold( child: Scaffold(
extendBodyBehindAppBar: true, extendBodyBehindAppBar: true,
extendBody: true, extendBody: true,
appBar: _isShowAppBar ? _buildAppBar(context) : null, appBar: _isShowAppBar ? _buildAppBar(context) : null,
bottomNavigationBar: _isShowAppBar ? _buildBottomAppBar(context) : null, bottomNavigationBar:
_isShowAppBar ? _buildBottomAppBar(context) : null,
body: Builder( body: Builder(
builder: (context) => _buildContent(context, originalBrightness), builder: (context) => _buildContent(context, originalBrightness),
), ),
), ),
),
); );
} }