2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 12:15:31 +00:00

Barcode refactor (#381)

* Simplify barcode scanning interface

* Use consistent colors

* Fix notches

* Remove old comment
This commit is contained in:
Oliver
2023-06-24 21:06:08 +10:00
committed by GitHub
parent e9eb84eace
commit 925966c627
8 changed files with 45 additions and 50 deletions

View File

@ -8,6 +8,7 @@
import "package:flutter/material.dart";
import "package:inventree/api.dart";
import "package:inventree/app_colors.dart";
import "package:inventree/helpers.dart";
@ -112,17 +113,17 @@ class InvenTreeStatusCode {
switch (color_name.toLowerCase()) {
case "success":
return Colors.green;
return COLOR_SUCCESS;
case "primary":
return Colors.blue;
return COLOR_PROGRESS;
case "secondary":
return Colors.grey;
case "dark":
return Colors.black;
case "danger":
return Colors.red;
return COLOR_DANGER;
case "warning":
return Colors.orange;
return COLOR_WARNING;
case "info":
return Colors.lightBlue;
default: