mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Added tab to run to if container
This commit is contained in:
@ -22,9 +22,8 @@ class DraggableCard extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return BlocBuilder<RoutineBloc, RoutineState>(
|
||||
builder: (context, state) {
|
||||
final deviceFunctions = state.selectedFunctions
|
||||
.where((f) => f.entityId == deviceData['deviceId'])
|
||||
.toList();
|
||||
final deviceFunctions =
|
||||
state.selectedFunctions.where((f) => f.entityId == deviceData['deviceId']).toList();
|
||||
|
||||
return Draggable<Map<String, dynamic>>(
|
||||
data: deviceData,
|
||||
@ -39,8 +38,7 @@ class DraggableCard extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildCardContent(
|
||||
BuildContext context, List<DeviceFunctionData> deviceFunctions) {
|
||||
Widget _buildCardContent(BuildContext context, List<DeviceFunctionData> deviceFunctions) {
|
||||
return Card(
|
||||
color: ColorsManager.whiteColors,
|
||||
child: Container(
|
||||
|
Reference in New Issue
Block a user