mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Barcode refactor (#381)
* Simplify barcode scanning interface * Use consistent colors * Fix notches * Remove old comment
This commit is contained in:
parent
e9eb84eace
commit
925966c627
8 changed files with 45 additions and 50 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue