mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-25 00:14:42 +01:00
Set nav bar to black in viewer
This commit is contained in:
parent
b403609f07
commit
46460e99e9
1 changed files with 14 additions and 7 deletions
|
@ -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),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue