WIP #206 Entity button card

This commit is contained in:
Yegor Vialov
2018-11-25 17:33:33 +02:00
parent 4492fb9f0c
commit 5633e30448
9 changed files with 124 additions and 39 deletions

View File

@ -41,6 +41,12 @@ class HACard {
);
}
case CardType.entityButton: {
return EntityButtonCardWidget(
card: this,
);
}
case CardType.weatherForecast:
case CardType.thermostat:
case CardType.sensor:
@ -51,7 +57,6 @@ class HACard {
case CardType.map:
case CardType.iframe:
case CardType.gauge:
case CardType.entityButton:
case CardType.conditional:
case CardType.alarmPanel: {
return UnsupportedCardWidget(

View File

@ -5,7 +5,7 @@ class Sizes {
static const leftWidgetPadding = 8.0;
static const extendedWidgetHeight = 50.0;
static const iconSize = 28.0;
static const largeIconSize = 34.0;
static const largeIconSize = 46.0;
static const stateFontSize = 15.0;
static const nameFontSize = 15.0;
static const smallFontSize = 14.0;