implemented light brightness slider

optimised state emit to only emit when change is detected
This commit is contained in:
Mohammad Salameh
2024-03-03 15:00:13 +03:00
parent 643b206d4c
commit 4cfae85f9c
7 changed files with 116 additions and 5 deletions

View File

@ -1,10 +1,10 @@
import 'package:syncrow_app/features/devices/model/device_model.dart';
class LightModel extends DeviceModel {
final double brightness;
final int color;
late double brightness;
late int color;
final int lightingMode;
late int lightingMode;
LightModel({
required this.brightness,