Make navigation bar in image editor and enhancer page black

This commit is contained in:
Ming Ming 2023-08-29 23:56:40 +08:00
parent 1c558bf0f0
commit 84782974d9
2 changed files with 20 additions and 6 deletions

View file

@ -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<ImageEditor> {
@override
build(BuildContext context) => Theme(
data: buildDarkTheme(context),
child: Scaffold(
body: Builder(
builder: _buildContent,
child: AnnotatedRegion<SystemUiOverlayStyle>(
value: const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.black,
systemNavigationBarIconBrightness: Brightness.dark,
),
child: Scaffold(
body: Builder(
builder: _buildContent,
),
),
),
);

View file

@ -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<ImageEnhancer> {
@override
build(BuildContext context) => Theme(
data: buildDarkTheme(context),
child: Scaffold(
body: Builder(
builder: _buildContent,
child: AnnotatedRegion<SystemUiOverlayStyle>(
value: const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.black,
systemNavigationBarIconBrightness: Brightness.dark,
),
child: Scaffold(
body: Builder(
builder: _buildContent,
),
),
),
);