mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 14:47:23 +00:00
add WallPresenceSensor and add new icons for presence state and selected value
This commit is contained in:
@ -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 ?? '',
|
||||
|
Reference in New Issue
Block a user