push ac functions and gang switches functions

This commit is contained in:
ashrafzarkanisala
2024-11-21 00:50:06 +03:00
parent 57b8f6b03e
commit 4441878bdd
27 changed files with 1739 additions and 188 deletions

View File

@ -29,11 +29,18 @@ class RoutineDevices extends StatelessWidget {
spacing: 10,
runSpacing: 10,
children: deviceList.asMap().entries.map((entry) {
final index = entry.key;
final device = entry.value;
return DraggableCard(
imagePath: device.getDefaultIcon(device.productType),
title: device.name ?? '',
deviceData: {
'key': UniqueKey().toString(),
'imagePath': device.getDefaultIcon(device.productType),
'title': device.name ?? '',
'deviceId': device.uuid,
'productType': device.productType,
'functions': device.functions,
},
);
}).toList(),
);