From c5da7ec84d171b61625ceecde6ebd393c2b2f90e Mon Sep 17 00:00:00 2001 From: Varakh Date: Sun, 4 Apr 2021 10:44:31 +0200 Subject: [PATCH] Adapt status bar color to match app's theme, released 1.2.2+8 --- CHANGELOG.md | 3 +++ README.md | 2 +- lib/ui/widgets/my_appbar.dart | 8 +++++++- pubspec.yaml | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7636823..7c4fa3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## 1.2.2+8 +* Adapt status bar color to match app's theme + ## 1.2.1+7 * Improve visual differences between the Upload tab and the upload button * Improved visuals in bottom tab bar diff --git a/README.md b/README.md index 80cbedf..5ddd2f7 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Start by installing dependencies and generating entities! ### Working versions for SDK ``` -[✓] Flutter (Channel stable, 1.22.6, on Linux, locale en_US.UTF-8) +[✓] Flutter (Channel stable, 2.0.4, on Linux, locale de_DE.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) ``` diff --git a/lib/ui/widgets/my_appbar.dart b/lib/ui/widgets/my_appbar.dart index a047ec1..f467da3 100644 --- a/lib/ui/widgets/my_appbar.dart +++ b/lib/ui/widgets/my_appbar.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; +import '../shared/app_colors.dart'; import '../widgets/about_iconbutton.dart'; class MyAppBar extends AppBar { @@ -7,7 +8,12 @@ class MyAppBar extends AppBar { static final List aboutDisabledWidgets = []; MyAppBar({Key key, Widget title, List actionWidgets, bool enableAbout = true}) - : super(key: key, title: Row(children: [title]), actions: _renderIconButtons(actionWidgets, enableAbout)); + : super( + key: key, + title: Row(children: [title]), + actions: _renderIconButtons(actionWidgets, enableAbout), + brightness: Brightness.dark, + backgroundColor: primaryAccentColor); static List _renderIconButtons(List actionWidgets, bool aboutEnabled) { if (actionWidgets == null) { diff --git a/pubspec.yaml b/pubspec.yaml index 07f58c8..85229be 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: A mobile client for FileBin. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.2.1+7 +version: 1.2.2+8 environment: sdk: ">=2.7.0 <3.0.0"