2019-08-24 21:22:32 +03:00
|
|
|
part of 'main.dart';
|
2018-11-14 15:14:46 +02:00
|
|
|
|
|
|
|
class EntityState {
|
|
|
|
static const on = 'on';
|
|
|
|
static const off = 'off';
|
|
|
|
static const home = 'home';
|
|
|
|
static const not_home = 'not_home';
|
|
|
|
static const unknown = 'unknown';
|
|
|
|
static const open = 'open';
|
|
|
|
static const opening = 'opening';
|
|
|
|
static const closed = 'closed';
|
|
|
|
static const closing = 'closing';
|
|
|
|
static const playing = 'playing';
|
|
|
|
static const paused = 'paused';
|
|
|
|
static const idle = 'idle';
|
|
|
|
static const standby = 'standby';
|
|
|
|
static const alarm_disarmed = 'disarmed';
|
|
|
|
static const alarm_armed_home = 'armed_home';
|
|
|
|
static const alarm_armed_away = 'armed_away';
|
|
|
|
static const alarm_armed_night = 'armed_night';
|
|
|
|
static const alarm_armed_custom_bypass = 'armed_custom_bypass';
|
|
|
|
static const alarm_pending = 'pending';
|
|
|
|
static const alarm_arming = 'arming';
|
|
|
|
static const alarm_disarming = 'disarming';
|
|
|
|
static const alarm_triggered = 'triggered';
|
|
|
|
static const locked = 'locked';
|
|
|
|
static const unlocked = 'unlocked';
|
|
|
|
static const unavailable = 'unavailable';
|
|
|
|
static const ok = 'ok';
|
|
|
|
static const problem = 'problem';
|
2019-03-13 21:33:58 +02:00
|
|
|
static const active = 'active';
|
2019-10-14 15:02:49 +03:00
|
|
|
static const cleaning = 'cleaning';
|
|
|
|
static const docked = 'docked';
|
|
|
|
static const returning = 'returning';
|
|
|
|
static const error = 'error';
|
2019-10-16 19:39:14 +03:00
|
|
|
|
2018-11-16 22:32:43 +02:00
|
|
|
}
|
|
|
|
|
2018-11-23 16:03:38 +02:00
|
|
|
class CardType {
|
2019-09-07 15:47:09 +03:00
|
|
|
static const HORIZONTAL_STACK = "horizontal-stack";
|
|
|
|
static const VERTICAL_STACK = "vertical-stack";
|
|
|
|
static const ENTITIES = "entities";
|
|
|
|
static const GLANCE = "glance";
|
|
|
|
static const MEDIA_CONTROL = "media-control";
|
|
|
|
static const WEATHER_FORECAST = "weather-forecast";
|
|
|
|
static const THERMOSTAT = "thermostat";
|
|
|
|
static const SENSOR = "sensor";
|
|
|
|
static const PLANT_STATUS = "plant-status";
|
|
|
|
static const PICTURE_ENTITY = "picture-entity";
|
|
|
|
static const PICTURE_ELEMENTS = "picture-elements";
|
|
|
|
static const PICTURE = "picture";
|
|
|
|
static const MAP = "map";
|
|
|
|
static const IFRAME = "iframe";
|
|
|
|
static const GAUGE = "gauge";
|
|
|
|
static const ENTITY_BUTTON = "entity-button";
|
2020-05-08 15:36:13 +03:00
|
|
|
static const ENTITY = "entity";
|
2020-04-13 21:17:14 +03:00
|
|
|
static const BUTTON = "button";
|
2019-09-07 15:47:09 +03:00
|
|
|
static const CONDITIONAL = "conditional";
|
|
|
|
static const ALARM_PANEL = "alarm-panel";
|
|
|
|
static const MARKDOWN = "markdown";
|
2019-09-08 19:04:12 +03:00
|
|
|
static const LIGHT = "light";
|
2020-04-26 21:44:21 +03:00
|
|
|
static const ENTITY_FILTER = "entity-filter";
|
2020-04-29 10:45:15 +03:00
|
|
|
static const UNKNOWN = "unknown";
|
2020-05-08 15:36:13 +03:00
|
|
|
static const HISTORY_GRAPH = "history-graph";
|
|
|
|
static const PICTURE_GLANCE = "picture-glance";
|
2020-05-09 16:38:05 +03:00
|
|
|
static const BADGES = "badges";
|
2019-09-07 18:23:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
class Sizes {
|
|
|
|
static const rightWidgetPadding = 10.0;
|
|
|
|
static const leftWidgetPadding = 10.0;
|
|
|
|
static const buttonPadding = 4.0;
|
|
|
|
static const extendedWidgetHeight = 50.0;
|
|
|
|
static const iconSize = 28.0;
|
|
|
|
static const largeIconSize = 46.0;
|
2020-04-04 15:47:40 +03:00
|
|
|
//static const stateFontSize = 15.0;
|
|
|
|
//static const nameFontSize = 15.0;
|
|
|
|
//static const smallFontSize = 14.0;
|
|
|
|
//static const largeFontSize = 24.0;
|
2019-09-07 18:23:04 +03:00
|
|
|
static const inputWidth = 160.0;
|
|
|
|
static const rowPadding = 10.0;
|
2019-09-09 12:25:13 +03:00
|
|
|
static const doubleRowPadding = rowPadding*2;
|
2019-09-10 15:40:49 +03:00
|
|
|
static const minViewColumnWidth = 350;
|
2019-09-14 18:32:44 +03:00
|
|
|
static const entityPageMaxWidth = 400.0;
|
|
|
|
static const mainPageScreenSeparatorWidth = 5.0;
|
|
|
|
static const tabletMinWidth = minViewColumnWidth + entityPageMaxWidth + 5;
|
2018-11-14 15:14:46 +02:00
|
|
|
}
|