mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-27 21:16:48 +00:00
* Display stock quantity more prominently * Cleanup search widget * Update for stock_detail widget * More tweaks * Change bottom bar icon * Display boolean parameters appropriately * Adds ability to edit part parameters * Bump icon size a bit * Improvements to filter options - Allow filtering by "option" type - To start with, filter stock by status code * Remove debug message * Remove getTriState method - No longer needed - Remove associated unit tests * Adjust filters based on server API version * Muted colors
21 lines
643 B
Dart
21 lines
643 B
Dart
import "package:flutter/material.dart";
|
|
import "package:one_context/one_context.dart";
|
|
|
|
const Color COLOR_GRAY_LIGHT = Color.fromRGBO(150, 150, 150, 1);
|
|
|
|
// Return an "action" color based on the current theme
|
|
Color get COLOR_ACTION {
|
|
|
|
BuildContext? context = OneContext().context;
|
|
|
|
if (context != null) {
|
|
return Theme.of(context).indicatorColor;
|
|
} else {
|
|
return Colors.lightBlue;
|
|
}
|
|
}
|
|
|
|
const Color COLOR_WARNING = Color.fromRGBO(250, 150, 50, 1);
|
|
const Color COLOR_DANGER = Color.fromRGBO(200, 50, 75, 1);
|
|
const Color COLOR_SUCCESS = Color.fromRGBO(100, 200, 75, 1);
|
|
const Color COLOR_PROGRESS = Color.fromRGBO(50, 100, 200, 1); |