mirror of
https://github.com/openfoodfacts/smooth-app.git
synced 2025-08-26 03:01:45 +08:00
fix: Colors of generic widgets replaced with globalized constants for colors (#1268)
* new colors added * colors replaced with constants * colors replaced with constants * colors replaced with constants * colors moved to design_constants.dart * empty attribute helper deleted * imports updated * screenshots updated Co-authored-by: Gayangi Seneviratne <sgayangi@gmail.com>
This commit is contained in:

committed by
GitHub

parent
b215537ff9
commit
e7df9e53e6
@ -21,9 +21,9 @@ class AttributeButton extends StatelessWidget {
|
||||
};
|
||||
|
||||
static const Map<String, Color> _colors = <String, Color>{
|
||||
PreferenceImportance.ID_NOT_IMPORTANT: Color(0xFF666666),
|
||||
PreferenceImportance.ID_IMPORTANT: Colors.blue,
|
||||
PreferenceImportance.ID_MANDATORY: Colors.red,
|
||||
PreferenceImportance.ID_NOT_IMPORTANT: PRIMARY_GREY_COLOR,
|
||||
PreferenceImportance.ID_IMPORTANT: PRIMARY_BLUE_COLOR,
|
||||
PreferenceImportance.ID_MANDATORY: RED_COLOR,
|
||||
};
|
||||
|
||||
@override
|
||||
|
Reference in New Issue
Block a user