Project structure change in progress
This commit is contained in:
16
lib/entities/button/button_entity.class.dart
Normal file
16
lib/entities/button/button_entity.class.dart
Normal file
@ -0,0 +1,16 @@
|
||||
part of '../../main.dart';
|
||||
|
||||
class ButtonEntity extends Entity {
|
||||
ButtonEntity(Map rawData, String webHost) : super(rawData, webHost);
|
||||
|
||||
|
||||
@override
|
||||
Widget _buildStatePart(BuildContext context) {
|
||||
return FlatServiceButton(
|
||||
entityId: entityId,
|
||||
serviceDomain: domain,
|
||||
serviceName: 'turn_on',
|
||||
text: domain == "scene" ? "ACTIVATE" : "EXECUTE",
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user