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:
Gayangi Seneviratne
2022-03-20 21:17:25 +05:30
committed by GitHub
parent b215537ff9
commit e7df9e53e6
15 changed files with 56 additions and 38 deletions

View File

@ -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