add WallPresenceSensor and add new icons for presence state and selected value

This commit is contained in:
mohammad
2025-04-06 09:57:12 +03:00
parent b77dc860cb
commit 4fc259491e
21 changed files with 1517 additions and 115 deletions

View File

@ -37,7 +37,8 @@ class _RoutineDevicesState extends State<RoutineDevices> {
device.productType == 'AC' ||
device.productType == '1G' ||
device.productType == '2G' ||
device.productType == '3G')
device.productType == '3G' ||
device.productType == 'WPS')
.toList();
return Wrap(
@ -46,7 +47,9 @@ class _RoutineDevicesState extends State<RoutineDevices> {
children: deviceList.asMap().entries.map((entry) {
final device = entry.value;
if (state.searchText != null && state.searchText!.isNotEmpty) {
return device.name!.toLowerCase().contains(state.searchText!.toLowerCase())
return device.name!
.toLowerCase()
.contains(state.searchText!.toLowerCase())
? DraggableCard(
imagePath: device.getDefaultIcon(device.productType),
title: device.name ?? '',