mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 18:54: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:
@ -27,10 +27,10 @@ class LightInterfaceModes extends StatelessWidget {
|
||||
Wrap(
|
||||
spacing: 25,
|
||||
children: List.generate(
|
||||
DevicesCubit.get(context).lightModes.length,
|
||||
DevicesCubit.getInstance().lightModes.length,
|
||||
(index) => InkWell(
|
||||
// onTap: () => DevicesCubit.get(context).setLightingMode(
|
||||
// light, DevicesCubit.get(context).lightModes[index]!),
|
||||
// onTap: () => DevicesCubit.getInstance().setLightingMode(
|
||||
// light, DevicesCubit.getInstance().lightModes[index]!),
|
||||
child: Column(
|
||||
children: [
|
||||
Container(
|
||||
|
||||
Reference in New Issue
Block a user