mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-24 15:47:55 +00:00
built 3 gang switch View
This commit is contained in:
@@ -9,7 +9,7 @@ import 'package:syncrow_app/features/devices/view/widgets/ACs/acs_view.dart';
|
||||
import 'package:syncrow_app/features/devices/view/widgets/curtains/curtain_view.dart';
|
||||
import 'package:syncrow_app/features/devices/view/widgets/gateway/gateway_view.dart';
|
||||
import 'package:syncrow_app/features/devices/view/widgets/lights/lights_view.dart';
|
||||
import 'package:syncrow_app/features/devices/view/widgets/screens/screens_view.dart';
|
||||
import 'package:syncrow_app/features/devices/view/widgets/lights_switches/light_switches.dart';
|
||||
import 'package:syncrow_app/features/devices/view/widgets/smart_door/door_view.dart';
|
||||
import 'package:syncrow_app/generated/assets.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/constants.dart';
|
||||
@@ -26,7 +26,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
devices: [
|
||||
ACModel(
|
||||
name: "Living Room AC",
|
||||
id: '0',
|
||||
id: 0,
|
||||
functions: [],
|
||||
status: false,
|
||||
temperature: 20,
|
||||
fanSpeed: 0,
|
||||
@@ -42,7 +43,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
ACModel(
|
||||
name: "Master Bedroom AC",
|
||||
id: '1',
|
||||
id: 1,
|
||||
functions: [],
|
||||
status: false,
|
||||
temperature: 20,
|
||||
fanSpeed: 0,
|
||||
@@ -58,7 +60,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
ACModel(
|
||||
name: "Kitchen AC",
|
||||
id: '2',
|
||||
id: 2,
|
||||
functions: [],
|
||||
status: false,
|
||||
temperature: 20,
|
||||
fanSpeed: 0,
|
||||
@@ -74,7 +77,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
ACModel(
|
||||
name: "Bathroom AC",
|
||||
id: '3',
|
||||
id: 3,
|
||||
functions: [],
|
||||
status: false,
|
||||
temperature: 20,
|
||||
fanSpeed: 0,
|
||||
@@ -98,7 +102,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
devices: [
|
||||
LightModel(
|
||||
name: "Living Room Light",
|
||||
id: '0',
|
||||
id: 0,
|
||||
functions: [],
|
||||
status: false,
|
||||
color: 0,
|
||||
brightness: 20,
|
||||
@@ -115,7 +120,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
LightModel(
|
||||
name: "Master Bedroom Light",
|
||||
id: '1',
|
||||
id: 1,
|
||||
functions: [],
|
||||
status: false,
|
||||
color: 2,
|
||||
brightness: 40,
|
||||
@@ -132,7 +138,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
LightModel(
|
||||
name: "Kitchen Light",
|
||||
id: '2',
|
||||
id: 2,
|
||||
functions: [],
|
||||
status: false,
|
||||
color: 1,
|
||||
brightness: 60,
|
||||
@@ -149,7 +156,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
LightModel(
|
||||
name: "Bathroom Light",
|
||||
id: '3',
|
||||
id: 3,
|
||||
functions: [],
|
||||
status: false,
|
||||
color: 3,
|
||||
brightness: 80,
|
||||
@@ -166,7 +174,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
LightModel(
|
||||
name: "Balcony Light",
|
||||
id: '4',
|
||||
id: 4,
|
||||
functions: [],
|
||||
status: false,
|
||||
color: 4,
|
||||
brightness: 100,
|
||||
@@ -198,7 +207,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
devices: [
|
||||
CurtainModel(
|
||||
openPercentage: 10,
|
||||
id: "1",
|
||||
id: 1,
|
||||
functions: [],
|
||||
name: "Living Room Curtain",
|
||||
status: false,
|
||||
type: DeviceType.Curtain,
|
||||
@@ -207,7 +217,8 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
CurtainModel(
|
||||
openPercentage: 20,
|
||||
id: "2",
|
||||
id: 2,
|
||||
functions: [],
|
||||
name: "Master Bedroom Curtain",
|
||||
status: false,
|
||||
type: DeviceType.Curtain,
|
||||
@@ -222,10 +233,10 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
),
|
||||
DevicesCategoryModel(
|
||||
devices: [],
|
||||
icon: Assets.iconsScreen,
|
||||
name: 'Screens',
|
||||
type: DeviceType.Screens,
|
||||
page: const ScreensView(),
|
||||
icon: Assets.icons3GangSwitch,
|
||||
name: 'Bedroom Lights',
|
||||
type: DeviceType.ThreeGang,
|
||||
page: const LightSwitchesView(),
|
||||
),
|
||||
DevicesCategoryModel(
|
||||
devices: [],
|
||||
|
||||
Reference in New Issue
Block a user