24 lines
541 B
Dart
24 lines
541 B
Dart
|
part of '../main.dart';
|
||
|
|
||
|
class AutomationEntity extends Entity {
|
||
|
AutomationEntity(Map rawData) : super(rawData);
|
||
|
|
||
|
@override
|
||
|
Widget _buildStatePart(BuildContext context) {
|
||
|
return SwitchStateWidget();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
Widget _buildAdditionalControlsForPage(BuildContext context) {
|
||
|
return Row(
|
||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
mainAxisSize: MainAxisSize.max,
|
||
|
children: <Widget>[
|
||
|
FlatServiceButton(
|
||
|
text: "TRIGGER",
|
||
|
serviceName: "trigger",
|
||
|
)
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
}
|