mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +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;
|
||||
return Theme(
|
||||
data: buildDarkTheme(),
|
||||
child: Scaffold(
|
||||
extendBodyBehindAppBar: true,
|
||||
extendBody: true,
|
||||
appBar: _isShowAppBar ? _buildAppBar(context) : null,
|
||||
bottomNavigationBar: _isShowAppBar ? _buildBottomAppBar(context) : null,
|
||||
body: Builder(
|
||||
builder: (context) => _buildContent(context, originalBrightness),
|
||||
child: AnnotatedRegion<SystemUiOverlayStyle>(
|
||||
value: const SystemUiOverlayStyle(
|
||||
systemNavigationBarColor: Colors.black,
|
||||
systemNavigationBarIconBrightness: Brightness.dark,
|
||||
),
|
||||
child: Scaffold(
|
||||
extendBodyBehindAppBar: true,
|
||||
extendBody: true,
|
||||
appBar: _isShowAppBar ? _buildAppBar(context) : null,
|
||||
bottomNavigationBar:
|
||||
_isShowAppBar ? _buildBottomAppBar(context) : null,
|
||||
body: Builder(
|
||||
builder: (context) => _buildContent(context, originalBrightness),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue