mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 17:47:53 +00:00
Merged with latest changes
This commit is contained in:
@ -22,8 +22,7 @@ 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[deviceData['uniqueCustomId']] ?? [];
|
||||
|
||||
return Draggable<Map<String, dynamic>>(
|
||||
data: deviceData,
|
||||
@ -43,7 +42,7 @@ class DraggableCard extends StatelessWidget {
|
||||
color: ColorsManager.whiteColors,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
width: 90,
|
||||
width: 110,
|
||||
height: deviceFunctions.isEmpty ? 123 : null,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
Reference in New Issue
Block a user