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,13 +121,20 @@ 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: Scaffold( child: AnnotatedRegion<SystemUiOverlayStyle>(
extendBodyBehindAppBar: true, value: const SystemUiOverlayStyle(
extendBody: true, systemNavigationBarColor: Colors.black,
appBar: _isShowAppBar ? _buildAppBar(context) : null, systemNavigationBarIconBrightness: Brightness.dark,
bottomNavigationBar: _isShowAppBar ? _buildBottomAppBar(context) : null, ),
body: Builder( child: Scaffold(
builder: (context) => _buildContent(context, originalBrightness), extendBodyBehindAppBar: true,
extendBody: true,
appBar: _isShowAppBar ? _buildAppBar(context) : null,
bottomNavigationBar:
_isShowAppBar ? _buildBottomAppBar(context) : null,
body: Builder(
builder: (context) => _buildContent(context, originalBrightness),
),
), ),
), ),
); );