Gauge card refactoring

This commit is contained in:
Yegor Vialov
2020-04-07 20:20:57 +00:00
parent ab398cbdc3
commit 62d07bf8b9
7 changed files with 165 additions and 120 deletions

View File

@ -154,6 +154,18 @@ class HAClientTheme {
}
}
Color getGreenGaugeColor() {
return Colors.green;
}
Color getYellowGaugeColor() {
return Colors.yellow;
}
Color getRedGaugeColor() {
return Colors.red;
}
TextStyle getLinkTextStyle(BuildContext context) {
ThemeData theme = Theme.of(context);
return theme.textTheme.body1.copyWith(