2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

Adjust colors of action buttons (#333)

Fixes https://github.com/inventree/inventree-app/issues/330
This commit is contained in:
Oliver 2023-04-20 20:47:24 +10:00 committed by GitHub
parent ac57c53202
commit 1d6708fbca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,7 @@
### 0.11.6 - April 2023 ### 0.11.6 - April 2023
--- ---
- Fix action button colors
- Added Norwegian translations - Added Norwegian translations
### 0.11.5 - April 2023 ### 0.11.5 - April 2023

View File

@ -2,6 +2,7 @@ import "package:flutter/material.dart";
import "package:flutter_speed_dial/flutter_speed_dial.dart"; import "package:flutter_speed_dial/flutter_speed_dial.dart";
import "package:inventree/api.dart"; import "package:inventree/api.dart";
import "package:inventree/app_colors.dart";
import "package:inventree/barcode.dart"; import "package:inventree/barcode.dart";
import "package:inventree/widget/back.dart"; import "package:inventree/widget/back.dart";
@ -63,11 +64,10 @@ mixin BaseWidgetProperties {
BottomAppBar? buildBottomAppBar(BuildContext context, GlobalKey<ScaffoldState> key) { BottomAppBar? buildBottomAppBar(BuildContext context, GlobalKey<ScaffoldState> key) {
const double iconSize = 32; const double iconSize = 32;
const Color iconColor = Colors.blueGrey;
List<Widget> icons = [ List<Widget> icons = [
IconButton( IconButton(
icon: Icon(Icons.menu, color: iconColor), icon: Icon(Icons.menu, color: COLOR_ACTION),
iconSize: iconSize, iconSize: iconSize,
onPressed: () { onPressed: () {
if (key.currentState != null) { if (key.currentState != null) {
@ -76,7 +76,7 @@ mixin BaseWidgetProperties {
}, },
), ),
IconButton( IconButton(
icon: Icon(Icons.search, color: iconColor), icon: Icon(Icons.search, color: COLOR_ACTION),
iconSize: iconSize, iconSize: iconSize,
onPressed: () { onPressed: () {
if (InvenTreeAPI().checkConnection()) { if (InvenTreeAPI().checkConnection()) {
@ -90,7 +90,7 @@ mixin BaseWidgetProperties {
}, },
), ),
IconButton( IconButton(
icon: Icon(Icons.qr_code_scanner, color: iconColor), icon: Icon(Icons.qr_code_scanner, color: COLOR_ACTION),
iconSize: iconSize, iconSize: iconSize,
onPressed: () { onPressed: () {
if (InvenTreeAPI().checkConnection()) { if (InvenTreeAPI().checkConnection()) {