From 70a234a9b4a0a7badec6df57f497196968f4d3cf Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Fri, 1 Sep 2023 12:29:31 +0800 Subject: [PATCH] Make navigation bar in local viewer black --- app/lib/widget/local_file_viewer.dart | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/lib/widget/local_file_viewer.dart b/app/lib/widget/local_file_viewer.dart index 4e48a42e..344a5ed7 100644 --- a/app/lib/widget/local_file_viewer.dart +++ b/app/lib/widget/local_file_viewer.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:kiwi/kiwi.dart'; import 'package:logging/logging.dart'; import 'package:nc_photos/app_localizations.dart'; @@ -54,9 +55,15 @@ class _LocalFileViewerState extends State { build(BuildContext context) { return Theme( data: buildDarkTheme(context), - child: Scaffold( - body: Builder( - builder: _buildContent, + child: AnnotatedRegion( + value: const SystemUiOverlayStyle( + systemNavigationBarColor: Colors.black, + systemNavigationBarIconBrightness: Brightness.dark, + ), + child: Scaffold( + body: Builder( + builder: _buildContent, + ), ), ), );