Add entity widget type. Preparing to make entity build it's own badge

This commit is contained in:
estevez
2018-10-03 16:44:11 +03:00
parent e7ca1209e2
commit 4725953b32
9 changed files with 27 additions and 19 deletions

View File

@ -48,7 +48,7 @@ class _TextEntityWidgetState extends _EntityWidgetState {
}
@override
Widget _buildActionWidget(bool inCard, BuildContext context) {
Widget _buildActionWidget(BuildContext context) {
if (!_focusNode.hasFocus && (_tmpValue != widget.entity.state)) {
_tmpValue = widget.entity.state;
}
@ -69,7 +69,7 @@ class _TextEntityWidgetState extends _EntityWidgetState {
);
} else {
TheLogger.log("Warning", "Unsupported input mode for ${widget.entity.entityId}");
return super._buildActionWidget(inCard, context);
return super._buildActionWidget(context);
}
}