mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 02:24:55 +00:00
Refactor device control logic and add temperature and fan speed enums
- Refactor device control logic in the app to improve readability and maintainability. - Add temperature modes (hot, cold, wind) and fan speeds (auto, low, middle, high) enums. - Update icon mappings and utility functions for temperature modes and fan speeds.
This commit is contained in:
@ -60,7 +60,7 @@ class LightInterfaceSlider extends StatelessWidget {
|
||||
// value: light.brightness,
|
||||
value: 100,
|
||||
onChanged: (value) {
|
||||
// DevicesCubit.get(context).setBrightness(light, value);
|
||||
// DevicesCubit.getInstance().setBrightness(light, value);
|
||||
},
|
||||
min: 0,
|
||||
max: 100,
|
||||
|
||||
Reference in New Issue
Block a user