From 84782974d9698d82af1c0780cdb167815697d06a Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Tue, 29 Aug 2023 23:56:40 +0800 Subject: [PATCH] Make navigation bar in image editor and enhancer page black --- app/lib/widget/image_editor.dart | 13 ++++++++++--- app/lib/widget/image_enhancer.dart | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/app/lib/widget/image_editor.dart b/app/lib/widget/image_editor.dart index f4fa8067..93f5c0cf 100644 --- a/app/lib/widget/image_editor.dart +++ b/app/lib/widget/image_editor.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:kiwi/kiwi.dart'; import 'package:nc_photos/account.dart'; import 'package:nc_photos/api/api_util.dart' as api_util; @@ -88,9 +89,15 @@ class _ImageEditorState extends State { @override build(BuildContext context) => 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, + ), ), ), ); diff --git a/app/lib/widget/image_enhancer.dart b/app/lib/widget/image_enhancer.dart index 905ba8f2..1e6574e1 100644 --- a/app/lib/widget/image_enhancer.dart +++ b/app/lib/widget/image_enhancer.dart @@ -5,6 +5,7 @@ import 'package:android_intent_plus/android_intent.dart'; import 'package:circular_reveal_animation/circular_reveal_animation.dart'; import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:kiwi/kiwi.dart'; import 'package:logging/logging.dart'; import 'package:nc_photos/account.dart'; @@ -89,9 +90,15 @@ class _ImageEnhancerState extends State { @override build(BuildContext context) => 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, + ), ), ), );