AC devices page implemented

AC Cubit Add
New Devices Cubit Arch will be used
Devices Cubit (for devices categories, and devices page)
{
AC cubit,
Lights cubit.
... }
Replaced AssetsManager with Assets Class (auto generated)
This commit is contained in:
Mohammad Salameh
2024-02-26 15:55:22 +03:00
parent c95a9c7817
commit abe7072f2d
72 changed files with 1535 additions and 634 deletions

View File

@ -0,0 +1,19 @@
class ACModel {
final String name;
final String id;
late bool status;
late double temperature;
late int fanSpeed;
late int tempMode;
ACModel({
required this.name,
required this.id,
required this.status,
required this.temperature,
required this.fanSpeed,
required this.tempMode,
});
}

View File

@ -1,16 +1,23 @@
import 'device_model.dart';
import 'package:flutter/cupertino.dart';
import 'ac_model.dart';
class DevicesCategoryModel {
final String name;
final String icon;
final bool switchValue;
final List<DeviceModel> devices;
final Widget page;
bool switchValue;
final List<ACModel> devices;
final DeviceType type;
bool isSelected;
DevicesCategoryModel(
{required this.type,
{this.isSelected = false,
required this.page,
required this.type,
required this.name,
required this.icon,
required this.switchValue,

View File

@ -1,14 +0,0 @@
class DeviceModel {
final String name;
final String imageUrl;
final String description;
final String category;
final String id;
DeviceModel(
{required this.name,
required this.imageUrl,
required this.description,
required this.category,
required this.id});
}