mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 04:34:54 +00:00
finished bugs
This commit is contained in:
@ -65,7 +65,7 @@ class DeviceFunctionsView extends StatelessWidget
|
||||
],
|
||||
leading: TextButton(
|
||||
onPressed: () {
|
||||
if (isAutomation) {
|
||||
// if (isAutomation) {
|
||||
final automationSelectedValue =
|
||||
context.read<CreateSceneBloc>().automationSelectedValues;
|
||||
for (var element in device.functions) {
|
||||
@ -77,7 +77,7 @@ class DeviceFunctionsView extends StatelessWidget
|
||||
code: element.code!, isAutomation: true));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// } else {
|
||||
final selectedValue =
|
||||
context.read<CreateSceneBloc>().selectedValues;
|
||||
for (var element in device.functions) {
|
||||
@ -90,7 +90,7 @@ class DeviceFunctionsView extends StatelessWidget
|
||||
.add(RemoveFromSelectedValueById(code: element.code!));
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
Navigator.pop(context);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user