Removed location from models

Added the spaces models
Added the rooms models
Added the Spaces cubit
Implemented the home dropdown functionality
This commit is contained in:
Mohammad Salameh
2024-03-06 21:34:23 +03:00
parent b99247c937
commit b3fcca639a
23 changed files with 359 additions and 138 deletions

View File

@ -17,7 +17,6 @@ class LightModel extends DeviceModel {
required super.name,
required super.type,
required super.status,
required super.location,
required super.image,
required super.timer,
});
@ -33,7 +32,6 @@ class LightModel extends DeviceModel {
'name': name,
'status': status,
'type': type,
'location': location,
'image': image,
};
}
@ -48,7 +46,6 @@ class LightModel extends DeviceModel {
lightingMode: json['lightingMode'],
timer: json['timer'],
type: json['type'],
location: json['location'],
image: json['image'],
recentColors: json['recentColors'],
);