mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-26 17:07:56 +00:00
Compare commits
17
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d45fa4c957 | ||
|
|
c178c36824 | ||
|
|
27dfa0a05a | ||
|
|
78979a4375 | ||
|
|
ea19387605 | ||
|
|
5b33a8617e | ||
|
|
34565a7dab | ||
|
|
caf1ff5c7e | ||
|
|
01e8002c43 | ||
|
|
63da660ece | ||
|
|
567d0e2d20 | ||
|
|
45e6ea3259 | ||
|
|
e942957a47 | ||
|
|
b9a3b9c719 | ||
|
|
f5500dfe50 | ||
|
|
1ba1aba54e | ||
|
|
09f2123946 |
Binary file not shown.
|
After Width: | Height: | Size: 290 KiB |
+3
-3
@@ -7,10 +7,10 @@ import 'package:go_router/go_router.dart';
|
|||||||
import 'package:syncrow_web/firebase_options_prod.dart';
|
import 'package:syncrow_web/firebase_options_prod.dart';
|
||||||
import 'package:syncrow_web/pages/auth/bloc/auth_bloc.dart';
|
import 'package:syncrow_web/pages/auth/bloc/auth_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/home/bloc/home_bloc.dart';
|
import 'package:syncrow_web/pages/home/bloc/home_bloc.dart';
|
||||||
|
import 'package:syncrow_web/pages/home/bloc/home_event.dart';
|
||||||
import 'package:syncrow_web/pages/routines/bloc/create_routine_bloc/create_routine_bloc.dart';
|
import 'package:syncrow_web/pages/routines/bloc/create_routine_bloc/create_routine_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/routines/bloc/routine_bloc/routine_bloc.dart';
|
import 'package:syncrow_web/pages/routines/bloc/routine_bloc/routine_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_event.dart';
|
|
||||||
import 'package:syncrow_web/pages/visitor_password/bloc/visitor_password_bloc.dart';
|
import 'package:syncrow_web/pages/visitor_password/bloc/visitor_password_bloc.dart';
|
||||||
import 'package:syncrow_web/services/locator.dart';
|
import 'package:syncrow_web/services/locator.dart';
|
||||||
import 'package:syncrow_web/utils/app_routes.dart';
|
import 'package:syncrow_web/utils/app_routes.dart';
|
||||||
@@ -59,7 +59,7 @@ class MyApp extends StatelessWidget {
|
|||||||
BlocProvider<CreateRoutineBloc>(
|
BlocProvider<CreateRoutineBloc>(
|
||||||
create: (context) => CreateRoutineBloc(),
|
create: (context) => CreateRoutineBloc(),
|
||||||
),
|
),
|
||||||
BlocProvider(create: (context) => HomeBloc()),
|
BlocProvider(create: (context) => HomeBloc()..add(FetchUserInfo())),
|
||||||
BlocProvider<VisitorPasswordBloc>(
|
BlocProvider<VisitorPasswordBloc>(
|
||||||
create: (context) => VisitorPasswordBloc(),
|
create: (context) => VisitorPasswordBloc(),
|
||||||
),
|
),
|
||||||
@@ -67,7 +67,7 @@ class MyApp extends StatelessWidget {
|
|||||||
create: (context) => RoutineBloc(),
|
create: (context) => RoutineBloc(),
|
||||||
),
|
),
|
||||||
BlocProvider<SpaceTreeBloc>(
|
BlocProvider<SpaceTreeBloc>(
|
||||||
create: (context) => SpaceTreeBloc()..add(InitialEvent()),
|
create: (context) => SpaceTreeBloc(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
child: MaterialApp.router(
|
child: MaterialApp.router(
|
||||||
|
|||||||
+3
-3
@@ -7,10 +7,10 @@ import 'package:go_router/go_router.dart';
|
|||||||
import 'package:syncrow_web/firebase_options_dev.dart';
|
import 'package:syncrow_web/firebase_options_dev.dart';
|
||||||
import 'package:syncrow_web/pages/auth/bloc/auth_bloc.dart';
|
import 'package:syncrow_web/pages/auth/bloc/auth_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/home/bloc/home_bloc.dart';
|
import 'package:syncrow_web/pages/home/bloc/home_bloc.dart';
|
||||||
|
import 'package:syncrow_web/pages/home/bloc/home_event.dart';
|
||||||
import 'package:syncrow_web/pages/routines/bloc/create_routine_bloc/create_routine_bloc.dart';
|
import 'package:syncrow_web/pages/routines/bloc/create_routine_bloc/create_routine_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/routines/bloc/routine_bloc/routine_bloc.dart';
|
import 'package:syncrow_web/pages/routines/bloc/routine_bloc/routine_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_event.dart';
|
|
||||||
import 'package:syncrow_web/pages/visitor_password/bloc/visitor_password_bloc.dart';
|
import 'package:syncrow_web/pages/visitor_password/bloc/visitor_password_bloc.dart';
|
||||||
import 'package:syncrow_web/services/locator.dart';
|
import 'package:syncrow_web/services/locator.dart';
|
||||||
import 'package:syncrow_web/utils/app_routes.dart';
|
import 'package:syncrow_web/utils/app_routes.dart';
|
||||||
@@ -59,7 +59,7 @@ class MyApp extends StatelessWidget {
|
|||||||
BlocProvider<CreateRoutineBloc>(
|
BlocProvider<CreateRoutineBloc>(
|
||||||
create: (context) => CreateRoutineBloc(),
|
create: (context) => CreateRoutineBloc(),
|
||||||
),
|
),
|
||||||
BlocProvider(create: (context) => HomeBloc()),
|
BlocProvider(create: (context) => HomeBloc()..add(FetchUserInfo())),
|
||||||
BlocProvider<VisitorPasswordBloc>(
|
BlocProvider<VisitorPasswordBloc>(
|
||||||
create: (context) => VisitorPasswordBloc(),
|
create: (context) => VisitorPasswordBloc(),
|
||||||
),
|
),
|
||||||
@@ -67,7 +67,7 @@ class MyApp extends StatelessWidget {
|
|||||||
create: (context) => RoutineBloc(),
|
create: (context) => RoutineBloc(),
|
||||||
),
|
),
|
||||||
BlocProvider<SpaceTreeBloc>(
|
BlocProvider<SpaceTreeBloc>(
|
||||||
create: (context) => SpaceTreeBloc()..add(InitialEvent()),
|
create: (context) => SpaceTreeBloc(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
child: MaterialApp.router(
|
child: MaterialApp.router(
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import 'package:go_router/go_router.dart';
|
|||||||
import 'package:syncrow_web/firebase_options_prod.dart';
|
import 'package:syncrow_web/firebase_options_prod.dart';
|
||||||
import 'package:syncrow_web/pages/auth/bloc/auth_bloc.dart';
|
import 'package:syncrow_web/pages/auth/bloc/auth_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/home/bloc/home_bloc.dart';
|
import 'package:syncrow_web/pages/home/bloc/home_bloc.dart';
|
||||||
|
import 'package:syncrow_web/pages/home/bloc/home_event.dart';
|
||||||
import 'package:syncrow_web/pages/routines/bloc/create_routine_bloc/create_routine_bloc.dart';
|
import 'package:syncrow_web/pages/routines/bloc/create_routine_bloc/create_routine_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/routines/bloc/routine_bloc/routine_bloc.dart';
|
import 'package:syncrow_web/pages/routines/bloc/routine_bloc/routine_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_event.dart';
|
|
||||||
import 'package:syncrow_web/pages/visitor_password/bloc/visitor_password_bloc.dart';
|
import 'package:syncrow_web/pages/visitor_password/bloc/visitor_password_bloc.dart';
|
||||||
import 'package:syncrow_web/services/locator.dart';
|
import 'package:syncrow_web/services/locator.dart';
|
||||||
import 'package:syncrow_web/utils/app_routes.dart';
|
import 'package:syncrow_web/utils/app_routes.dart';
|
||||||
@@ -56,7 +56,7 @@ class MyApp extends StatelessWidget {
|
|||||||
BlocProvider<CreateRoutineBloc>(
|
BlocProvider<CreateRoutineBloc>(
|
||||||
create: (context) => CreateRoutineBloc(),
|
create: (context) => CreateRoutineBloc(),
|
||||||
),
|
),
|
||||||
BlocProvider(create: (context) => HomeBloc()),
|
BlocProvider(create: (context) => HomeBloc()..add(FetchUserInfo())),
|
||||||
BlocProvider<VisitorPasswordBloc>(
|
BlocProvider<VisitorPasswordBloc>(
|
||||||
create: (context) => VisitorPasswordBloc(),
|
create: (context) => VisitorPasswordBloc(),
|
||||||
),
|
),
|
||||||
@@ -64,7 +64,7 @@ class MyApp extends StatelessWidget {
|
|||||||
create: (context) => RoutineBloc(),
|
create: (context) => RoutineBloc(),
|
||||||
),
|
),
|
||||||
BlocProvider<SpaceTreeBloc>(
|
BlocProvider<SpaceTreeBloc>(
|
||||||
create: (context) => SpaceTreeBloc()..add(InitialEvent()),
|
create: (context) => SpaceTreeBloc(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
child: MaterialApp.router(
|
child: MaterialApp.router(
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ import 'package:syncrow_web/pages/analytics/services/range_of_aqi/remote_range_o
|
|||||||
import 'package:syncrow_web/pages/analytics/services/realtime_device_service/firebase_realtime_device_service.dart';
|
import 'package:syncrow_web/pages/analytics/services/realtime_device_service/firebase_realtime_device_service.dart';
|
||||||
import 'package:syncrow_web/pages/analytics/services/total_energy_consumption/remote_total_energy_consumption_service.dart';
|
import 'package:syncrow_web/pages/analytics/services/total_energy_consumption/remote_total_energy_consumption_service.dart';
|
||||||
import 'package:syncrow_web/pages/device_managment/shared/navigate_home_grid_view.dart';
|
import 'package:syncrow_web/pages/device_managment/shared/navigate_home_grid_view.dart';
|
||||||
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
||||||
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_event.dart';
|
||||||
import 'package:syncrow_web/services/api/http_service.dart';
|
import 'package:syncrow_web/services/api/http_service.dart';
|
||||||
import 'package:syncrow_web/utils/theme/responsive_text_theme.dart';
|
import 'package:syncrow_web/utils/theme/responsive_text_theme.dart';
|
||||||
import 'package:syncrow_web/web_layout/web_scaffold.dart';
|
import 'package:syncrow_web/web_layout/web_scaffold.dart';
|
||||||
@@ -130,9 +132,19 @@ class _AnalyticsPageState extends State<AnalyticsPage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class AnalyticsPageForm extends StatelessWidget {
|
class AnalyticsPageForm extends StatefulWidget {
|
||||||
const AnalyticsPageForm({super.key});
|
const AnalyticsPageForm({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<AnalyticsPageForm> createState() => _AnalyticsPageFormState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _AnalyticsPageFormState extends State<AnalyticsPageForm> {
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
context.read<SpaceTreeBloc>().add(InitialEvent());
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return WebScaffold(
|
return WebScaffold(
|
||||||
|
|||||||
+2
-2
@@ -46,7 +46,7 @@ class AnalyticsEnergyManagementView extends StatelessWidget {
|
|||||||
spacing: 32,
|
spacing: 32,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 7,
|
||||||
child: Column(
|
child: Column(
|
||||||
spacing: 20,
|
spacing: 20,
|
||||||
children: [
|
children: [
|
||||||
@@ -55,7 +55,7 @@ class AnalyticsEnergyManagementView extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(child: PowerClampEnergyDataWidget()),
|
Expanded(flex: 4, child: PowerClampEnergyDataWidget()),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -31,12 +31,12 @@ class AnalyticsOccupancyView extends StatelessWidget {
|
|||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: _padding,
|
padding: _padding,
|
||||||
height: height * 0.9,
|
height: height * 1,
|
||||||
child: const Row(
|
child: const Row(
|
||||||
spacing: 32,
|
spacing: 32,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 7,
|
||||||
child: Column(
|
child: Column(
|
||||||
spacing: 20,
|
spacing: 20,
|
||||||
children: [
|
children: [
|
||||||
@@ -45,7 +45,7 @@ class AnalyticsOccupancyView extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(flex: 2, child: OccupancyEndSideBar()),
|
Expanded(flex: 4, child: OccupancyEndSideBar()),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -24,37 +24,45 @@ class OccupancyEndSideBar extends StatelessWidget {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
const AnalyticsSidebarHeader(title: 'Presnce Sensor'),
|
const AnalyticsSidebarHeader(title: 'Presnce Sensor'),
|
||||||
SizedBox(
|
Expanded(
|
||||||
height: MediaQuery.sizeOf(context).height * 0.2,
|
child: SizedBox(
|
||||||
child: PowerClampEnergyStatusWidget(
|
// height: MediaQuery.sizeOf(context).height * 0.2,
|
||||||
status: [
|
child: PowerClampEnergyStatusWidget(
|
||||||
PowerClampEnergyStatus(
|
status: [
|
||||||
iconPath: Assets.presenceState,
|
PowerClampEnergyStatus(
|
||||||
title: 'Presence Status',
|
iconPath: Assets.presenceState,
|
||||||
value: _valueFromCode(
|
title: 'Presence Status',
|
||||||
'presence_state',
|
value: _valueFromCode(
|
||||||
state.deviceStatusList,
|
'presence_state',
|
||||||
|
state.deviceStatusList,
|
||||||
|
),
|
||||||
|
unit: '',
|
||||||
),
|
),
|
||||||
unit: '',
|
PowerClampEnergyStatus(
|
||||||
),
|
iconPath: Assets.presenceTimeIcon,
|
||||||
PowerClampEnergyStatus(
|
title: 'Presence Time',
|
||||||
iconPath: Assets.presenceTimeIcon,
|
value:
|
||||||
title: 'Presence Time',
|
'${_valueFromCode('none_body_time', state.deviceStatusList)} Min',
|
||||||
value:
|
unit: '',
|
||||||
'${_valueFromCode('none_body_time', state.deviceStatusList)} Min',
|
),
|
||||||
unit: '',
|
PowerClampEnergyStatus(
|
||||||
),
|
iconPath: Assets.currentDistanceIcon,
|
||||||
PowerClampEnergyStatus(
|
title: 'Detection Distance',
|
||||||
iconPath: Assets.currentDistanceIcon,
|
value:
|
||||||
title: 'Detection Distance',
|
'${_valueFromCode('space_move_val', state.deviceStatusList)} M',
|
||||||
value:
|
unit: '',
|
||||||
'${_valueFromCode('space_move_val', state.deviceStatusList)} M',
|
),
|
||||||
unit: '',
|
],
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
|
Expanded(
|
||||||
|
flex: 2,
|
||||||
|
child: FittedBox(
|
||||||
|
child: Image.asset(Assets.autocadOccupancyImage),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -8,15 +8,28 @@ import 'package:syncrow_web/pages/routines/bloc/create_routine_bloc/create_routi
|
|||||||
import 'package:syncrow_web/pages/routines/bloc/routine_bloc/routine_bloc.dart';
|
import 'package:syncrow_web/pages/routines/bloc/routine_bloc/routine_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/routines/view/create_new_routine_view.dart';
|
import 'package:syncrow_web/pages/routines/view/create_new_routine_view.dart';
|
||||||
import 'package:syncrow_web/pages/routines/view/routines_view.dart';
|
import 'package:syncrow_web/pages/routines/view/routines_view.dart';
|
||||||
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
||||||
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_event.dart';
|
||||||
import 'package:syncrow_web/utils/color_manager.dart';
|
import 'package:syncrow_web/utils/color_manager.dart';
|
||||||
import 'package:syncrow_web/utils/extension/build_context_x.dart';
|
import 'package:syncrow_web/utils/extension/build_context_x.dart';
|
||||||
import 'package:syncrow_web/utils/helpers/responsice_layout_helper/responsive_layout_helper.dart';
|
import 'package:syncrow_web/utils/helpers/responsice_layout_helper/responsive_layout_helper.dart';
|
||||||
import 'package:syncrow_web/utils/theme/responsive_text_theme.dart';
|
import 'package:syncrow_web/utils/theme/responsive_text_theme.dart';
|
||||||
import 'package:syncrow_web/web_layout/web_scaffold.dart';
|
import 'package:syncrow_web/web_layout/web_scaffold.dart';
|
||||||
|
|
||||||
class DeviceManagementPage extends StatelessWidget with HelperResponsiveLayout {
|
class DeviceManagementPage extends StatefulWidget with HelperResponsiveLayout {
|
||||||
const DeviceManagementPage({super.key});
|
const DeviceManagementPage({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<DeviceManagementPage> createState() => _DeviceManagementPageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _DeviceManagementPageState extends State<DeviceManagementPage> {
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
context.read<SpaceTreeBloc>().add(InitialEvent());
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MultiBlocProvider(
|
return MultiBlocProvider(
|
||||||
|
|||||||
@@ -34,17 +34,9 @@ class HomeCard extends StatelessWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Flexible(
|
Expanded(
|
||||||
child: FittedBox(
|
child: SpliteNameHelperWidget(
|
||||||
fit: BoxFit.scaleDown,
|
name: name,
|
||||||
child: Text(
|
|
||||||
name,
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 30,
|
|
||||||
color: Colors.white,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -63,3 +55,72 @@ class HomeCard extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class SpliteNameHelperWidget extends StatelessWidget {
|
||||||
|
final String name;
|
||||||
|
const SpliteNameHelperWidget({
|
||||||
|
super.key,
|
||||||
|
required this.name,
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
List<String> parts = name.split(' ');
|
||||||
|
|
||||||
|
if (parts.length == 2) {
|
||||||
|
// Two-word string
|
||||||
|
return Padding(
|
||||||
|
padding: const EdgeInsetsGeometry.only(top: 10, left: 10),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: FittedBox(
|
||||||
|
fit: BoxFit.scaleDown,
|
||||||
|
child: Text(
|
||||||
|
parts[0],
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 30,
|
||||||
|
color: Colors.white,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: FittedBox(
|
||||||
|
fit: BoxFit.scaleDown,
|
||||||
|
child: Text(
|
||||||
|
parts[1],
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 30,
|
||||||
|
color: Colors.white,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
// One-word string
|
||||||
|
return Text(
|
||||||
|
name,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 30,
|
||||||
|
color: Colors.white,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Text(
|
||||||
|
// name,
|
||||||
|
// style: const TextStyle(
|
||||||
|
// fontSize: 32,
|
||||||
|
// color: Colors.white,
|
||||||
|
// fontWeight: FontWeight.bold,
|
||||||
|
// ),
|
||||||
|
// )
|
||||||
|
|||||||
@@ -13,19 +13,25 @@ class HomePage extends StatefulWidget {
|
|||||||
State<HomePage> createState() => _HomePageState();
|
State<HomePage> createState() => _HomePageState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _HomePageState extends State<HomePage> with HelperResponsiveLayout{
|
class _HomePageState extends State<HomePage> with HelperResponsiveLayout {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
context.read<HomeBloc>().add(const FetchUserInfo());
|
_fetchUserInfo();
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final isSmallScreen = isSmallScreenSize(context);
|
if (isSmallScreenSize(context) || isMediumScreenSize(context)) {
|
||||||
final isMediumScreen = isMediumScreenSize(context);
|
return HomeMobilePage();
|
||||||
return isSmallScreen || isMediumScreen
|
}
|
||||||
? HomeMobilePage()
|
|
||||||
: const HomeWebPage();
|
return const HomeWebPage();
|
||||||
|
}
|
||||||
|
|
||||||
|
void _fetchUserInfo() {
|
||||||
|
final bloc = context.read<HomeBloc>();
|
||||||
|
if (bloc.user == null) bloc.add(const FetchUserInfo());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class _HomeWebPageState extends State<HomeWebPage> {
|
|||||||
flex: 4,
|
flex: 4,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: size.height * 0.6,
|
height: size.height * 0.6,
|
||||||
width: size.width * 0.68,
|
width: size.width * 0.8,
|
||||||
child: GridView.builder(
|
child: GridView.builder(
|
||||||
itemCount: homeBloc.homeItems.length,
|
itemCount: homeBloc.homeItems.length,
|
||||||
gridDelegate:
|
gridDelegate:
|
||||||
|
|||||||
@@ -13,6 +13,35 @@ class FunctionBloc extends Bloc<FunctionBlocEvent, FunctionBlocState> {
|
|||||||
on<AddFunction>(_onAddFunction);
|
on<AddFunction>(_onAddFunction);
|
||||||
on<SelectFunction>(_onSelectFunction);
|
on<SelectFunction>(_onSelectFunction);
|
||||||
}
|
}
|
||||||
|
// void _onAddFunction(AddFunction event, Emitter<FunctionBlocState> emit) {
|
||||||
|
// final functions = List<DeviceFunctionData>.from(state.addedFunctions);
|
||||||
|
// final existingIndex = functions.indexWhere(
|
||||||
|
// (f) => f.functionCode == event.functionData.functionCode,
|
||||||
|
// );
|
||||||
|
|
||||||
|
// if (existingIndex != -1) {
|
||||||
|
// final existingData = functions[existingIndex];
|
||||||
|
// functions[existingIndex] = DeviceFunctionData(
|
||||||
|
// entityId: event.functionData.entityId,
|
||||||
|
// functionCode: event.functionData.functionCode,
|
||||||
|
// operationName: event.functionData.operationName,
|
||||||
|
// value: event.functionData.value ?? existingData.value,
|
||||||
|
// valueDescription: event.functionData.valueDescription ??
|
||||||
|
// existingData.valueDescription,
|
||||||
|
// condition: event.functionData.condition ?? existingData.condition,
|
||||||
|
// step: event.functionData.step ?? existingData.step,
|
||||||
|
// );
|
||||||
|
// } else {
|
||||||
|
// functions.clear();
|
||||||
|
// functions.add(event.functionData);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// emit(state.copyWith(
|
||||||
|
// addedFunctions: functions,
|
||||||
|
// selectedFunction: event.functionData.functionCode,
|
||||||
|
// ));
|
||||||
|
// }
|
||||||
|
|
||||||
void _onAddFunction(AddFunction event, Emitter<FunctionBlocState> emit) {
|
void _onAddFunction(AddFunction event, Emitter<FunctionBlocState> emit) {
|
||||||
final functions = List<DeviceFunctionData>.from(state.addedFunctions);
|
final functions = List<DeviceFunctionData>.from(state.addedFunctions);
|
||||||
final existingIndex = functions.indexWhere(
|
final existingIndex = functions.indexWhere(
|
||||||
@@ -20,19 +49,10 @@ class FunctionBloc extends Bloc<FunctionBlocEvent, FunctionBlocState> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (existingIndex != -1) {
|
if (existingIndex != -1) {
|
||||||
final existingData = functions[existingIndex];
|
// Update the function value
|
||||||
functions[existingIndex] = DeviceFunctionData(
|
functions[existingIndex] = event.functionData;
|
||||||
entityId: event.functionData.entityId,
|
|
||||||
functionCode: event.functionData.functionCode,
|
|
||||||
operationName: event.functionData.operationName,
|
|
||||||
value: event.functionData.value ?? existingData.value,
|
|
||||||
valueDescription: event.functionData.valueDescription ??
|
|
||||||
existingData.valueDescription,
|
|
||||||
condition: event.functionData.condition ?? existingData.condition,
|
|
||||||
step: event.functionData.step ?? existingData.step,
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
functions.clear();
|
// Add new function value
|
||||||
functions.add(event.functionData);
|
functions.add(event.functionData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1419,15 +1419,17 @@ Future<void> _onLoadScenes(
|
|||||||
event.automationId, event.automationStatusUpdate, projectId);
|
event.automationId, event.automationStatusUpdate, projectId);
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
final updatedAutomations = await SceneApi.getAutomationByUnitId(
|
// await SceneApi.getAutomationByUnitId(
|
||||||
event.automationStatusUpdate.spaceUuid,
|
// event.automationStatusUpdate.spaceUuid,
|
||||||
event.communityId,
|
// event.communityId,
|
||||||
projectId);
|
// projectId);
|
||||||
|
|
||||||
// Remove from loading set safely
|
// Remove from loading set safely
|
||||||
|
|
||||||
final updatedLoadingIds = {...state.loadingAutomationIds!}
|
final updatedLoadingIds = {...state.loadingAutomationIds!}
|
||||||
..remove(event.automationId);
|
..remove(event.automationId);
|
||||||
|
final updatedAutomations = changeItemStateOnToggelingSceen(
|
||||||
|
state.automations, event.automationId);
|
||||||
emit(state.copyWith(
|
emit(state.copyWith(
|
||||||
automations: updatedAutomations,
|
automations: updatedAutomations,
|
||||||
loadingAutomationIds: updatedLoadingIds,
|
loadingAutomationIds: updatedLoadingIds,
|
||||||
@@ -1449,4 +1451,24 @@ Future<void> _onLoadScenes(
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<ScenesModel> changeItemStateOnToggelingSceen(
|
||||||
|
List<ScenesModel> oldSceen, String automationId) {
|
||||||
|
return oldSceen.map((scene) {
|
||||||
|
if (scene.id == automationId) {
|
||||||
|
return ScenesModel(
|
||||||
|
id: scene.id,
|
||||||
|
sceneTuyaId: scene.sceneTuyaId,
|
||||||
|
name: scene.name,
|
||||||
|
status: scene.status == 'enable' ? 'disable' : 'enable',
|
||||||
|
type: scene.type,
|
||||||
|
spaceName: scene.spaceName,
|
||||||
|
spaceId: scene.spaceId,
|
||||||
|
communityId: scene.communityId,
|
||||||
|
icon: scene.icon,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return scene;
|
||||||
|
}).toList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ class _DropdownContentState extends State<_DropdownContent> {
|
|||||||
final selectedCommunity = _findCommunity(state, state.selectedSpaceId);
|
final selectedCommunity = _findCommunity(state, state.selectedSpaceId);
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
height: 46,
|
height: 40,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border.all(color: Colors.grey.shade300),
|
border: Border.all(color: Colors.grey.shade300),
|
||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
@@ -149,7 +149,7 @@ class _DropdownContentState extends State<_DropdownContent> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
height: 45,
|
height: 45,
|
||||||
width: 33,
|
width: 44,
|
||||||
child: const Icon(
|
child: const Icon(
|
||||||
Icons.keyboard_arrow_down,
|
Icons.keyboard_arrow_down,
|
||||||
color: ColorsManager.textGray,
|
color: ColorsManager.textGray,
|
||||||
|
|||||||
@@ -44,144 +44,156 @@ class _CreateNewRoutinesDialogState extends State<CreateNewRoutinesDialog> {
|
|||||||
_selectedSpace = null;
|
_selectedSpace = null;
|
||||||
_selectedCommunity = _selectedId;
|
_selectedCommunity = _selectedId;
|
||||||
}
|
}
|
||||||
return AlertDialog(
|
return Dialog(
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
insetPadding: EdgeInsets.zero,
|
insetPadding: const EdgeInsets.symmetric(
|
||||||
contentPadding: EdgeInsets.zero,
|
horizontal: 20,
|
||||||
|
),
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(12)),
|
borderRadius: BorderRadius.circular(12)),
|
||||||
title: Text(
|
child: Container(
|
||||||
'Create New Routines',
|
width: 450,
|
||||||
textAlign: TextAlign.center,
|
child: Stack(
|
||||||
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
|
children: [
|
||||||
color: ColorsManager.spaceColor,
|
Column(
|
||||||
fontSize: 20,
|
mainAxisSize: MainAxisSize.min,
|
||||||
fontWeight: FontWeight.w700,
|
children: [
|
||||||
),
|
const SizedBox(height: 20),
|
||||||
),
|
Text(
|
||||||
content: Stack(
|
'Create New Routines',
|
||||||
children: [
|
textAlign: TextAlign.center,
|
||||||
Column(
|
style:
|
||||||
mainAxisSize: MainAxisSize.min,
|
Theme.of(context).textTheme.bodyMedium!.copyWith(
|
||||||
children: [
|
color: ColorsManager.spaceColor,
|
||||||
const Divider(),
|
fontSize: 20,
|
||||||
const SizedBox(height: 20),
|
fontWeight: FontWeight.w700,
|
||||||
Column(
|
),
|
||||||
children: [
|
),
|
||||||
Padding(
|
const Divider(),
|
||||||
padding:
|
const SizedBox(height: 20),
|
||||||
const EdgeInsets.only(left: 13, right: 8),
|
Column(
|
||||||
child: Column(
|
children: [
|
||||||
children: [
|
Column(
|
||||||
SpaceTreeDropdown(
|
children: [
|
||||||
selectedSpaceId: _selectedId,
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(
|
||||||
|
left: 13, right: 10),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
SpaceTreeDropdown(
|
||||||
|
selectedSpaceId: _selectedId,
|
||||||
|
onChanged: (String? newValue) {
|
||||||
|
setState(
|
||||||
|
() => _selectedId = newValue!);
|
||||||
|
if (_selectedId != null) {
|
||||||
|
_bloc.add(
|
||||||
|
SpaceOnlyWithDevicesEvent(
|
||||||
|
_selectedId!));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)),
|
||||||
|
const SizedBox(height: 21),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(
|
||||||
|
left: 15, right: 20),
|
||||||
|
child: SpaceDropdown(
|
||||||
|
hintMessage: spaceHint,
|
||||||
|
spaces: spaces,
|
||||||
|
selectedValue: _selectedSpace,
|
||||||
onChanged: (String? newValue) {
|
onChanged: (String? newValue) {
|
||||||
setState(() => _selectedId = newValue!);
|
setState(() {
|
||||||
if (_selectedId != null) {
|
_selectedSpace = newValue;
|
||||||
_bloc.add(SpaceOnlyWithDevicesEvent(
|
});
|
||||||
_selectedId!));
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
)),
|
],
|
||||||
const SizedBox(height: 5),
|
|
||||||
const SizedBox(height: 8),
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.only(left: 15, right: 15),
|
|
||||||
child: SpaceDropdown(
|
|
||||||
hintMessage: spaceHint,
|
|
||||||
spaces: spaces,
|
|
||||||
selectedValue: _selectedSpace,
|
|
||||||
onChanged: (String? newValue) {
|
|
||||||
setState(() {
|
|
||||||
_selectedSpace = newValue;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
const SizedBox(height: 20),
|
||||||
const SizedBox(height: 20),
|
const Divider(),
|
||||||
const Divider(),
|
Row(
|
||||||
Row(
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
children: [
|
||||||
children: [
|
Padding(
|
||||||
Padding(
|
padding: const EdgeInsets.only(
|
||||||
padding: const EdgeInsets.only(
|
left: 20,
|
||||||
left: 20,
|
right: 20,
|
||||||
right: 20,
|
),
|
||||||
),
|
child: TextButton(
|
||||||
child: TextButton(
|
onPressed: () {
|
||||||
onPressed: () {
|
Navigator.of(context).pop();
|
||||||
Navigator.of(context).pop();
|
},
|
||||||
},
|
child: Text(
|
||||||
child: Text(
|
'Cancel',
|
||||||
'Cancel',
|
style: Theme.of(context)
|
||||||
style: Theme.of(context)
|
.textTheme
|
||||||
.textTheme
|
.bodyMedium!
|
||||||
.bodyMedium!
|
.copyWith(
|
||||||
.copyWith(
|
fontWeight: FontWeight.w400,
|
||||||
fontWeight: FontWeight.w400,
|
fontSize: 14,
|
||||||
fontSize: 14,
|
color: ColorsManager.blackColor,
|
||||||
color: ColorsManager.blackColor,
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Padding(
|
||||||
Padding(
|
padding: const EdgeInsets.only(
|
||||||
padding: const EdgeInsets.only(
|
left: 20,
|
||||||
left: 20,
|
right: 20,
|
||||||
right: 20,
|
),
|
||||||
),
|
child: TextButton(
|
||||||
child: TextButton(
|
onPressed: _selectedCommunity != null &&
|
||||||
onPressed: _selectedCommunity != null &&
|
_selectedSpace != null
|
||||||
_selectedSpace != null
|
? () {
|
||||||
? () {
|
Navigator.of(context).pop({
|
||||||
Navigator.of(context).pop({
|
'community': _selectedCommunity,
|
||||||
'community': _selectedCommunity,
|
'space': _selectedSpace,
|
||||||
'space': _selectedSpace,
|
});
|
||||||
});
|
}
|
||||||
}
|
: null,
|
||||||
: null,
|
child: Text(
|
||||||
child: Text(
|
'Next',
|
||||||
'Next',
|
style: Theme.of(context)
|
||||||
style: Theme.of(context)
|
.textTheme
|
||||||
.textTheme
|
.bodyMedium!
|
||||||
.bodyMedium!
|
.copyWith(
|
||||||
.copyWith(
|
fontWeight: FontWeight.w400,
|
||||||
fontWeight: FontWeight.w400,
|
fontSize: 14,
|
||||||
fontSize: 14,
|
color: _selectedCommunity != null &&
|
||||||
color: _selectedCommunity != null &&
|
_selectedSpace != null
|
||||||
_selectedSpace != null
|
? ColorsManager.blueColor
|
||||||
? ColorsManager.blueColor
|
: Colors.blue.shade100,
|
||||||
: Colors.blue.shade100,
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
const SizedBox(height: 10),
|
||||||
const SizedBox(height: 10),
|
],
|
||||||
],
|
|
||||||
),
|
|
||||||
if (isLoadingCommunities)
|
|
||||||
const SizedBox(
|
|
||||||
height: 200,
|
|
||||||
child: Column(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Center(
|
|
||||||
child: CircularProgressIndicator(
|
|
||||||
color: ColorsManager.primaryColor,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
if (isLoadingCommunities)
|
||||||
|
const SizedBox(
|
||||||
|
height: 200,
|
||||||
|
child: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Center(
|
||||||
|
child: CircularProgressIndicator(
|
||||||
|
color: ColorsManager.primaryColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ class SpaceDropdown extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
child: Container(
|
child: Container(
|
||||||
|
height: 40,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
color: ColorsManager.whiteColors,
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
),
|
),
|
||||||
child: DropdownButton2<String>(
|
child: DropdownButton2<String>(
|
||||||
@@ -45,7 +47,7 @@ class SpaceDropdown extends StatelessWidget {
|
|||||||
value: space.uuid,
|
value: space.uuid,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
' ${space.name}',
|
' ${space.name}',
|
||||||
@@ -88,7 +90,7 @@ class SpaceDropdown extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 6,
|
flex: 8,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 10),
|
padding: const EdgeInsets.only(left: 10),
|
||||||
child: Text(
|
child: Text(
|
||||||
@@ -129,6 +131,7 @@ class SpaceDropdown extends StatelessWidget {
|
|||||||
dropdownStyleData: DropdownStyleData(
|
dropdownStyleData: DropdownStyleData(
|
||||||
maxHeight: MediaQuery.of(context).size.height * 0.4,
|
maxHeight: MediaQuery.of(context).size.height * 0.4,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
color: ColorsManager.whiteColors,
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -17,9 +17,10 @@ class SaveRoutineHelper {
|
|||||||
builder: (context) {
|
builder: (context) {
|
||||||
return BlocBuilder<RoutineBloc, RoutineState>(
|
return BlocBuilder<RoutineBloc, RoutineState>(
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
final selectedConditionLabel = state.selectedAutomationOperator == 'and'
|
final selectedConditionLabel =
|
||||||
? 'All Conditions are met'
|
state.selectedAutomationOperator == 'and'
|
||||||
: 'Any Condition is met';
|
? 'All Conditions are met'
|
||||||
|
: 'Any Condition is met';
|
||||||
|
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
contentPadding: EdgeInsets.zero,
|
contentPadding: EdgeInsets.zero,
|
||||||
@@ -37,10 +38,11 @@ class SaveRoutineHelper {
|
|||||||
Text(
|
Text(
|
||||||
'Create a scene: ${state.routineName ?? ""}',
|
'Create a scene: ${state.routineName ?? ""}',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: Theme.of(context).textTheme.headlineMedium!.copyWith(
|
style:
|
||||||
color: ColorsManager.primaryColorWithOpacity,
|
Theme.of(context).textTheme.headlineMedium!.copyWith(
|
||||||
fontWeight: FontWeight.bold,
|
color: ColorsManager.primaryColorWithOpacity,
|
||||||
),
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 18),
|
const SizedBox(height: 18),
|
||||||
_buildDivider(),
|
_buildDivider(),
|
||||||
@@ -58,7 +60,8 @@ class SaveRoutineHelper {
|
|||||||
_buildIfConditions(state, context),
|
_buildIfConditions(state, context),
|
||||||
Container(
|
Container(
|
||||||
width: 1,
|
width: 1,
|
||||||
color: ColorsManager.greyColor.withValues(alpha: 0.8),
|
color: ColorsManager.greyColor
|
||||||
|
.withValues(alpha: 0.8),
|
||||||
),
|
),
|
||||||
_buildThenActions(state, context),
|
_buildThenActions(state, context),
|
||||||
],
|
],
|
||||||
@@ -97,7 +100,8 @@ class SaveRoutineHelper {
|
|||||||
child: Row(
|
child: Row(
|
||||||
spacing: 16,
|
spacing: 16,
|
||||||
children: [
|
children: [
|
||||||
Expanded(child: Text('IF: $selectedConditionLabel', style: textStyle)),
|
Expanded(
|
||||||
|
child: Text('IF: $selectedConditionLabel', style: textStyle)),
|
||||||
const Expanded(child: Text('THEN:', style: textStyle)),
|
const Expanded(child: Text('THEN:', style: textStyle)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -109,7 +113,7 @@ class SaveRoutineHelper {
|
|||||||
spacing: 16,
|
spacing: 16,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
DialogFooterButton(
|
DialogFooterButton(
|
||||||
text: 'Back',
|
text: 'Back',
|
||||||
onTap: () => Navigator.pop(context),
|
onTap: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
@@ -143,7 +147,8 @@ class SaveRoutineHelper {
|
|||||||
child: ListView(
|
child: ListView(
|
||||||
// shrinkWrap: true,
|
// shrinkWrap: true,
|
||||||
children: state.thenItems.map((item) {
|
children: state.thenItems.map((item) {
|
||||||
final functions = state.selectedFunctions[item['uniqueCustomId']] ?? [];
|
final functions =
|
||||||
|
state.selectedFunctions[item['uniqueCustomId']] ?? [];
|
||||||
return functionRow(item, context, functions);
|
return functionRow(item, context, functions);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
),
|
),
|
||||||
@@ -203,19 +208,20 @@ class SaveRoutineHelper {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: item['type'] == 'tap_to_run' || item['type'] == 'scene'
|
child:
|
||||||
? Image.memory(
|
item['type'] == 'tap_to_run' || item['type'] == 'scene'
|
||||||
base64Decode(item['icon']),
|
? Image.memory(
|
||||||
width: 12,
|
base64Decode(item['icon']),
|
||||||
height: 22,
|
width: 12,
|
||||||
fit: BoxFit.scaleDown,
|
height: 22,
|
||||||
)
|
fit: BoxFit.scaleDown,
|
||||||
: SvgPicture.asset(
|
)
|
||||||
item['imagePath'],
|
: SvgPicture.asset(
|
||||||
width: 12,
|
item['imagePath'],
|
||||||
height: 12,
|
width: 12,
|
||||||
fit: BoxFit.scaleDown,
|
height: 12,
|
||||||
),
|
fit: BoxFit.scaleDown,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
|
|||||||
@@ -405,8 +405,8 @@ class PowerFactorCStatusFunction extends EnergyClampFunctions {
|
|||||||
code: 'PowerFactorC',
|
code: 'PowerFactorC',
|
||||||
operationName: 'Power Factor C',
|
operationName: 'Power Factor C',
|
||||||
icon: Assets.speedoMeter,
|
icon: Assets.speedoMeter,
|
||||||
min: 0.00,
|
min: 0.0,
|
||||||
max: 1.00,
|
max: 1.0,
|
||||||
step: 0.1,
|
step: 0.1,
|
||||||
unit: "",
|
unit: "",
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -117,10 +117,22 @@ class ACHelper {
|
|||||||
},
|
},
|
||||||
onConfirm: state.addedFunctions.isNotEmpty
|
onConfirm: state.addedFunctions.isNotEmpty
|
||||||
? () {
|
? () {
|
||||||
|
final selectedFunctionData =
|
||||||
|
state.addedFunctions.firstWhere(
|
||||||
|
(f) =>
|
||||||
|
f.functionCode == state.selectedFunction,
|
||||||
|
orElse: () => DeviceFunctionData(
|
||||||
|
entityId: '',
|
||||||
|
functionCode: state.selectedFunction ?? '',
|
||||||
|
operationName: '',
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
/// add the functions to the routine bloc
|
/// add the functions to the routine bloc
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
state.addedFunctions,
|
[selectedFunctionData],
|
||||||
uniqueCustomId,
|
uniqueCustomId,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
+11
-1
@@ -78,12 +78,22 @@ class _CeilingSensorDialogState extends State<CeilingSensorDialog> {
|
|||||||
onCancel: () => Navigator.pop(context),
|
onCancel: () => Navigator.pop(context),
|
||||||
onConfirm: state.addedFunctions.isNotEmpty
|
onConfirm: state.addedFunctions.isNotEmpty
|
||||||
? () {
|
? () {
|
||||||
|
final selectedFunctionData =
|
||||||
|
state.addedFunctions.firstWhere(
|
||||||
|
(f) => f.functionCode == state.selectedFunction,
|
||||||
|
orElse: () => DeviceFunctionData(
|
||||||
|
entityId: '',
|
||||||
|
functionCode: state.selectedFunction ?? '',
|
||||||
|
operationName: '',
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
|
);
|
||||||
final functions = _updateValuesForAddedFunctions(
|
final functions = _updateValuesForAddedFunctions(
|
||||||
state.addedFunctions,
|
state.addedFunctions,
|
||||||
);
|
);
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
functions,
|
[selectedFunctionData],
|
||||||
'${widget.uniqueCustomId}',
|
'${widget.uniqueCustomId}',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
+10
-1
@@ -192,9 +192,18 @@ class _WallPresenceSensorState extends State<FlushPresenceSensor> {
|
|||||||
onCancel: () => Navigator.pop(context),
|
onCancel: () => Navigator.pop(context),
|
||||||
onConfirm: state.addedFunctions.isNotEmpty
|
onConfirm: state.addedFunctions.isNotEmpty
|
||||||
? () {
|
? () {
|
||||||
|
final selectedFunctionData = state.addedFunctions.firstWhere(
|
||||||
|
(f) => f.functionCode == state.selectedFunction,
|
||||||
|
orElse: () => DeviceFunctionData(
|
||||||
|
entityId: '',
|
||||||
|
functionCode: state.selectedFunction ?? '',
|
||||||
|
operationName: '',
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
|
);
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
state.addedFunctions,
|
[selectedFunctionData],
|
||||||
widget.uniqueCustomId!,
|
widget.uniqueCustomId!,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -115,9 +115,18 @@ class _GatewayDialogState extends State<GatewayDialog> {
|
|||||||
onCancel: () => Navigator.pop(context),
|
onCancel: () => Navigator.pop(context),
|
||||||
onConfirm: state.addedFunctions.isNotEmpty
|
onConfirm: state.addedFunctions.isNotEmpty
|
||||||
? () {
|
? () {
|
||||||
|
final selectedFunctionData = state.addedFunctions.firstWhere(
|
||||||
|
(f) => f.functionCode == state.selectedFunction,
|
||||||
|
orElse: () => DeviceFunctionData(
|
||||||
|
entityId: '',
|
||||||
|
functionCode: state.selectedFunction ?? '',
|
||||||
|
operationName: '',
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
|
);
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
state.addedFunctions,
|
[selectedFunctionData],
|
||||||
widget.uniqueCustomId ?? '-1',
|
widget.uniqueCustomId ?? '-1',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ class OneGangSwitchHelper {
|
|||||||
// }
|
// }
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
state.addedFunctions,
|
[selectedFunctionData],
|
||||||
uniqueCustomId,
|
uniqueCustomId,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
+10
-1
@@ -250,9 +250,18 @@ class _EnergyClampDialogState extends State<EnergyClampDialog> {
|
|||||||
onCancel: () => Navigator.pop(context),
|
onCancel: () => Navigator.pop(context),
|
||||||
onConfirm: state.addedFunctions.isNotEmpty
|
onConfirm: state.addedFunctions.isNotEmpty
|
||||||
? () {
|
? () {
|
||||||
|
final selectedFunctionData = state.addedFunctions.firstWhere(
|
||||||
|
(f) => f.functionCode == state.selectedFunction,
|
||||||
|
orElse: () => DeviceFunctionData(
|
||||||
|
entityId: '',
|
||||||
|
functionCode: state.selectedFunction ?? '',
|
||||||
|
operationName: '',
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
|
);
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
state.addedFunctions,
|
[selectedFunctionData],
|
||||||
widget.uniqueCustomId!,
|
widget.uniqueCustomId!,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
+5
-6
@@ -27,17 +27,16 @@ class EnergyValueSelectorWidget extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final selectedFn =
|
final selectedFn = functions.firstWhere((f) => f.code == selectedFunction);
|
||||||
functions.firstWhere((f) => f.code == selectedFunction);
|
|
||||||
final values = selectedFn.getOperationalValues();
|
final values = selectedFn.getOperationalValues();
|
||||||
final step = selectedFn.step ?? 1.0;
|
final step = selectedFn.step;
|
||||||
final _unit = selectedFn.unit ?? '';
|
final _unit = selectedFn.unit ?? '';
|
||||||
final (double, double) sliderRange =
|
final (double, double) sliderRange =
|
||||||
(selectedFn.min ?? 0.0, selectedFn.max ?? 100.0);
|
(selectedFn.min ?? 0.0, selectedFn.max ?? 100.0);
|
||||||
|
|
||||||
if (_isSliderFunction(selectedFunction)) {
|
if (_isSliderFunction(selectedFunction)) {
|
||||||
return CustomRoutinesTextbox(
|
return CustomRoutinesTextbox(
|
||||||
withSpecialChar: false,
|
withSpecialChar: true,
|
||||||
currentCondition: functionData.condition,
|
currentCondition: functionData.condition,
|
||||||
dialogType: dialogType,
|
dialogType: dialogType,
|
||||||
sliderRange: sliderRange,
|
sliderRange: sliderRange,
|
||||||
@@ -60,14 +59,14 @@ class EnergyValueSelectorWidget extends StatelessWidget {
|
|||||||
entityId: device?.uuid ?? '',
|
entityId: device?.uuid ?? '',
|
||||||
functionCode: selectedFunction,
|
functionCode: selectedFunction,
|
||||||
operationName: functionData.operationName,
|
operationName: functionData.operationName,
|
||||||
value: value.toInt(),
|
value: value,
|
||||||
condition: functionData.condition,
|
condition: functionData.condition,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
unit: _unit,
|
unit: _unit,
|
||||||
dividendOfRange: 1,
|
dividendOfRange: 1,
|
||||||
stepIncreaseAmount: step,
|
stepIncreaseAmount: step!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -145,9 +145,22 @@ class TwoGangSwitchHelper {
|
|||||||
// ),
|
// ),
|
||||||
// );
|
// );
|
||||||
// }
|
// }
|
||||||
|
final selectedFunctionData =
|
||||||
|
state.addedFunctions.firstWhere(
|
||||||
|
(f) =>
|
||||||
|
f.functionCode ==
|
||||||
|
state.selectedFunction,
|
||||||
|
orElse: () => DeviceFunctionData(
|
||||||
|
entityId: '',
|
||||||
|
functionCode:
|
||||||
|
state.selectedFunction ?? '',
|
||||||
|
operationName: '',
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
|
);
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
state.addedFunctions,
|
[selectedFunctionData],
|
||||||
uniqueCustomId,
|
uniqueCustomId,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -210,9 +210,18 @@ class _WallPresenceSensorState extends State<WallPresenceSensor> {
|
|||||||
onCancel: () => Navigator.pop(context),
|
onCancel: () => Navigator.pop(context),
|
||||||
onConfirm: state.addedFunctions.isNotEmpty
|
onConfirm: state.addedFunctions.isNotEmpty
|
||||||
? () {
|
? () {
|
||||||
|
final selectedFunctionData = state.addedFunctions.firstWhere(
|
||||||
|
(f) => f.functionCode == state.selectedFunction,
|
||||||
|
orElse: () => DeviceFunctionData(
|
||||||
|
entityId: '',
|
||||||
|
functionCode: state.selectedFunction ?? '',
|
||||||
|
operationName: '',
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
|
);
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
state.addedFunctions,
|
[selectedFunctionData],
|
||||||
widget.uniqueCustomId!,
|
widget.uniqueCustomId!,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
+10
-1
@@ -188,9 +188,18 @@ class _WaterHeaterDialogRoutinesState extends State<WaterHeaterDialogRoutines> {
|
|||||||
onCancel: () => Navigator.pop(context),
|
onCancel: () => Navigator.pop(context),
|
||||||
onConfirm: state.addedFunctions.isNotEmpty
|
onConfirm: state.addedFunctions.isNotEmpty
|
||||||
? () {
|
? () {
|
||||||
|
final selectedFunctionData = state.addedFunctions.firstWhere(
|
||||||
|
(f) => f.functionCode == state.selectedFunction,
|
||||||
|
orElse: () => DeviceFunctionData(
|
||||||
|
entityId: '',
|
||||||
|
functionCode: state.selectedFunction ?? '',
|
||||||
|
operationName: '',
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
|
);
|
||||||
context.read<RoutineBloc>().add(
|
context.read<RoutineBloc>().add(
|
||||||
AddFunctionToRoutine(
|
AddFunctionToRoutine(
|
||||||
state.addedFunctions,
|
[selectedFunctionData],
|
||||||
widget.uniqueCustomId!,
|
widget.uniqueCustomId!,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/device_managment/shared/navigate_home_grid_view.dart';
|
import 'package:syncrow_web/pages/device_managment/shared/navigate_home_grid_view.dart';
|
||||||
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_bloc.dart';
|
||||||
|
import 'package:syncrow_web/pages/space_tree/bloc/space_tree_event.dart';
|
||||||
import 'package:syncrow_web/pages/spaces_management/structure_selector/bloc/center_body_bloc.dart';
|
import 'package:syncrow_web/pages/spaces_management/structure_selector/bloc/center_body_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/spaces_management/all_spaces/bloc/space_management_bloc.dart';
|
import 'package:syncrow_web/pages/spaces_management/all_spaces/bloc/space_management_bloc.dart';
|
||||||
import 'package:syncrow_web/pages/spaces_management/all_spaces/bloc/space_management_event.dart';
|
import 'package:syncrow_web/pages/spaces_management/all_spaces/bloc/space_management_event.dart';
|
||||||
@@ -25,6 +26,12 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
final CommunitySpaceManagementApi _api = CommunitySpaceManagementApi();
|
final CommunitySpaceManagementApi _api = CommunitySpaceManagementApi();
|
||||||
final ProductApi _productApi = ProductApi();
|
final ProductApi _productApi = ProductApi();
|
||||||
final SpaceModelManagementApi _spaceModelApi = SpaceModelManagementApi();
|
final SpaceModelManagementApi _spaceModelApi = SpaceModelManagementApi();
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
context.read<SpaceTreeBloc>().add(InitialEvent());
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MultiBlocProvider(
|
return MultiBlocProvider(
|
||||||
|
|||||||
+6
-6
@@ -49,12 +49,12 @@ class CommunityStructureHeaderActionButtons extends StatelessWidget {
|
|||||||
onPressed: onEdit,
|
onPressed: onEdit,
|
||||||
theme: theme,
|
theme: theme,
|
||||||
),
|
),
|
||||||
CommunityStructureHeaderButton(
|
// CommunityStructureHeaderButton(
|
||||||
label: "Duplicate",
|
// label: "Duplicate",
|
||||||
svgAsset: Assets.duplicate,
|
// svgAsset: Assets.duplicate,
|
||||||
onPressed: onDuplicate,
|
// onPressed: onDuplicate,
|
||||||
theme: theme,
|
// theme: theme,
|
||||||
),
|
// ),
|
||||||
CommunityStructureHeaderButton(
|
CommunityStructureHeaderButton(
|
||||||
label: "Delete",
|
label: "Delete",
|
||||||
svgAsset: Assets.spaceDelete,
|
svgAsset: Assets.spaceDelete,
|
||||||
|
|||||||
+146
-145
@@ -1,138 +1,138 @@
|
|||||||
class Assets {
|
class Assets {
|
||||||
Assets._();
|
Assets._();
|
||||||
static const String background = "assets/images/Background.png";
|
static const String background = 'assets/images/Background.png';
|
||||||
static const String webBackground = "assets/images/web_Background.svg";
|
static const String webBackground = 'assets/images/web_Background.svg';
|
||||||
static const String webBackgroundPng = "assets/images/web_Background.png";
|
static const String webBackgroundPng = 'assets/images/web_Background.png';
|
||||||
static const String blackLogo = "assets/images/black-logo.png";
|
static const String blackLogo = 'assets/images/black-logo.png';
|
||||||
static const String logo = "assets/images/Logo.svg";
|
static const String logo = 'assets/images/Logo.svg';
|
||||||
static const String logoHorizontal = "assets/images/logo_horizontal.png";
|
static const String logoHorizontal = 'assets/images/logo_horizontal.png';
|
||||||
static const String vector = "assets/images/Vector.png";
|
static const String vector = 'assets/images/Vector.png';
|
||||||
static const String loginLogo = "assets/images/login_logo.svg";
|
static const String loginLogo = 'assets/images/login_logo.svg';
|
||||||
static const String whiteLogo = "assets/images/white-logo.png";
|
static const String whiteLogo = 'assets/images/white-logo.png';
|
||||||
static const String window = "assets/images/Window.png";
|
static const String window = 'assets/images/Window.png';
|
||||||
static const String liftLine = "assets/images/lift_line.png";
|
static const String liftLine = 'assets/images/lift_line.png';
|
||||||
static const String rightLine = "assets/images/right_line.png";
|
static const String rightLine = 'assets/images/right_line.png';
|
||||||
static const String google = "assets/images/google.svg";
|
static const String google = 'assets/images/google.svg';
|
||||||
static const String facebook = "assets/images/facebook.svg";
|
static const String facebook = 'assets/images/facebook.svg';
|
||||||
static const String invisiblePassword =
|
static const String invisiblePassword =
|
||||||
"assets/images/Password_invisible.svg";
|
'assets/images/Password_invisible.svg';
|
||||||
static const String visiblePassword = "assets/images/password_visible.svg";
|
static const String visiblePassword = 'assets/images/password_visible.svg';
|
||||||
static const String accessIcon = "assets/images/access_icon.svg";
|
static const String accessIcon = 'assets/images/access_icon.svg';
|
||||||
static const String spaseManagementIcon =
|
static const String spaseManagementIcon =
|
||||||
"assets/images/spase_management_icon.svg";
|
'assets/images/spase_management_icon.svg';
|
||||||
static const String devicesIcon = "assets/images/devices_icon.svg";
|
static const String devicesIcon = 'assets/images/devices_icon.svg';
|
||||||
static const String analyticsIcon = "assets/icons/landing_analytics.svg";
|
static const String analyticsIcon = 'assets/icons/landing_analytics.svg';
|
||||||
|
|
||||||
static const String moveinIcon = "assets/images/movein_icon.svg";
|
static const String moveinIcon = 'assets/images/movein_icon.svg';
|
||||||
static const String constructionIcon = "assets/images/construction_icon.svg";
|
static const String constructionIcon = 'assets/images/construction_icon.svg';
|
||||||
static const String energyIcon = "assets/images/energy_icon.svg";
|
static const String energyIcon = 'assets/images/energy_icon.svg';
|
||||||
static const String integrationsIcon = "assets/images/Integrations_icon.svg";
|
static const String integrationsIcon = 'assets/images/Integrations_icon.svg';
|
||||||
static const String assetIcon = "assets/images/asset_icon.svg";
|
static const String assetIcon = 'assets/images/asset_icon.svg';
|
||||||
static const String calendarIcon = "assets/images/calendar_icon.svg";
|
static const String calendarIcon = 'assets/images/calendar_icon.svg';
|
||||||
static const String deviceNoteIcon = "assets/images/device_note.svg";
|
static const String deviceNoteIcon = 'assets/images/device_note.svg';
|
||||||
static const String timeIcon = "assets/images/time_icon.svg";
|
static const String timeIcon = 'assets/images/time_icon.svg';
|
||||||
static const String emptyTable = "assets/images/empty_table.svg";
|
static const String emptyTable = 'assets/images/empty_table.svg';
|
||||||
|
|
||||||
// General assets
|
// General assets
|
||||||
static const String motionlessDetection =
|
static const String motionlessDetection =
|
||||||
"assets/icons/motionless_detection.svg";
|
'assets/icons/motionless_detection.svg';
|
||||||
static const String acHeating = "assets/icons/ac_heating.svg";
|
static const String acHeating = 'assets/icons/ac_heating.svg';
|
||||||
static const String acPowerOff = "assets/icons/ac_power_off.svg";
|
static const String acPowerOff = 'assets/icons/ac_power_off.svg';
|
||||||
static const String acFanMiddle = "assets/icons/ac_fan_middle.svg";
|
static const String acFanMiddle = 'assets/icons/ac_fan_middle.svg';
|
||||||
static const String switchAlarmSound = "assets/icons/switch_alarm_sound.svg";
|
static const String switchAlarmSound = 'assets/icons/switch_alarm_sound.svg';
|
||||||
static const String resetOff = "assets/icons/reset_off.svg";
|
static const String resetOff = 'assets/icons/reset_off.svg';
|
||||||
static const String sensitivityOperationIcon =
|
static const String sensitivityOperationIcon =
|
||||||
"assets/icons/sesitivity_operation_icon.svg";
|
'assets/icons/sesitivity_operation_icon.svg';
|
||||||
static const String motionDetection = "assets/icons/motion_detection.svg";
|
static const String motionDetection = 'assets/icons/motion_detection.svg';
|
||||||
static const String freezing = "assets/icons/freezing.svg";
|
static const String freezing = 'assets/icons/freezing.svg';
|
||||||
static const String indicator = "assets/icons/indicator.svg";
|
static const String indicator = 'assets/icons/indicator.svg';
|
||||||
static const String sceneRefresh = "assets/icons/scene_refresh.svg";
|
static const String sceneRefresh = 'assets/icons/scene_refresh.svg';
|
||||||
static const String temperature = "assets/icons/tempreture.svg";
|
static const String temperature = 'assets/icons/tempreture.svg';
|
||||||
static const String acFanHigh = "assets/icons/ac_fan_high.svg";
|
static const String acFanHigh = 'assets/icons/ac_fan_high.svg';
|
||||||
static const String fanSpeed = "assets/icons/fan_speed.svg";
|
static const String fanSpeed = 'assets/icons/fan_speed.svg';
|
||||||
static const String acFanLow = "assets/icons/ac_fan_low.svg";
|
static const String acFanLow = 'assets/icons/ac_fan_low.svg';
|
||||||
static const String sensitivity = "assets/icons/sensitivity.svg";
|
static const String sensitivity = 'assets/icons/sensitivity.svg';
|
||||||
static const String lightCountdown = "assets/icons/light_countdown.svg";
|
static const String lightCountdown = 'assets/icons/light_countdown.svg';
|
||||||
static const String farDetection = "assets/icons/far_detection.svg";
|
static const String farDetection = 'assets/icons/far_detection.svg';
|
||||||
static const String sceneChildUnlock = "assets/icons/scene_child_unlock.svg";
|
static const String sceneChildUnlock = 'assets/icons/scene_child_unlock.svg';
|
||||||
static const String acFanAuto = "assets/icons/ac_fan_auto.svg";
|
static const String acFanAuto = 'assets/icons/ac_fan_auto.svg';
|
||||||
static const String childLock = "assets/icons/child_lock.svg";
|
static const String childLock = 'assets/icons/child_lock.svg';
|
||||||
static const String factoryReset = "assets/icons/factory_reset.svg";
|
static const String factoryReset = 'assets/icons/factory_reset.svg';
|
||||||
static const String acCooling = "assets/icons/ac_cooling.svg";
|
static const String acCooling = 'assets/icons/ac_cooling.svg';
|
||||||
static const String sceneChildLock = "assets/icons/scene_child_lock.svg";
|
static const String sceneChildLock = 'assets/icons/scene_child_lock.svg';
|
||||||
static const String celsiusDegrees = "assets/icons/celsius_degrees.svg";
|
static const String celsiusDegrees = 'assets/icons/celsius_degrees.svg';
|
||||||
static const String masterState = "assets/icons/master_state.svg";
|
static const String masterState = 'assets/icons/master_state.svg';
|
||||||
static const String acPower = "assets/icons/ac_power.svg";
|
static const String acPower = 'assets/icons/ac_power.svg';
|
||||||
static const String farDetectionFunction =
|
static const String farDetectionFunction =
|
||||||
"assets/icons/far_detection_function.svg";
|
'assets/icons/far_detection_function.svg';
|
||||||
static const String nobodyTime = "assets/icons/nobody_time.svg";
|
static const String nobodyTime = 'assets/icons/nobody_time.svg';
|
||||||
|
|
||||||
// Automation functions
|
// Automation functions
|
||||||
static const String tempPasswordUnlock =
|
static const String tempPasswordUnlock =
|
||||||
"assets/icons/automation_functions/temp_password_unlock.svg";
|
'assets/icons/automation_functions/temp_password_unlock.svg';
|
||||||
static const String doorlockNormalOpen =
|
static const String doorlockNormalOpen =
|
||||||
"assets/icons/automation_functions/doorlock_normal_open.svg";
|
'assets/icons/automation_functions/doorlock_normal_open.svg';
|
||||||
static const String doorbell =
|
static const String doorbell =
|
||||||
"assets/icons/automation_functions/doorbell.svg";
|
'assets/icons/automation_functions/doorbell.svg';
|
||||||
static const String remoteUnlockViaApp =
|
static const String remoteUnlockViaApp =
|
||||||
"assets/icons/automation_functions/remote_unlock_via_app.svg";
|
'assets/icons/automation_functions/remote_unlock_via_app.svg';
|
||||||
static const String doubleLock =
|
static const String doubleLock =
|
||||||
"assets/icons/automation_functions/double_lock.svg";
|
'assets/icons/automation_functions/double_lock.svg';
|
||||||
static const String selfTestResult =
|
static const String selfTestResult =
|
||||||
"assets/icons/automation_functions/self_test_result.svg";
|
'assets/icons/automation_functions/self_test_result.svg';
|
||||||
static const String lockAlarm =
|
static const String lockAlarm =
|
||||||
"assets/icons/automation_functions/lock_alarm.svg";
|
'assets/icons/automation_functions/lock_alarm.svg';
|
||||||
static const String presenceState =
|
static const String presenceState =
|
||||||
"assets/icons/automation_functions/presence_state.svg";
|
'assets/icons/automation_functions/presence_state.svg';
|
||||||
static const String currentTemp =
|
static const String currentTemp =
|
||||||
"assets/icons/automation_functions/current_temp.svg";
|
'assets/icons/automation_functions/current_temp.svg';
|
||||||
static const String presence =
|
static const String presence =
|
||||||
"assets/icons/automation_functions/presence.svg";
|
'assets/icons/automation_functions/presence.svg';
|
||||||
static const String residualElectricity =
|
static const String residualElectricity =
|
||||||
"assets/icons/automation_functions/residual_electricity.svg";
|
'assets/icons/automation_functions/residual_electricity.svg';
|
||||||
static const String hijackAlarm =
|
static const String hijackAlarm =
|
||||||
"assets/icons/automation_functions/hijack_alarm.svg";
|
'assets/icons/automation_functions/hijack_alarm.svg';
|
||||||
static const String passwordUnlock =
|
static const String passwordUnlock =
|
||||||
"assets/icons/automation_functions/password_unlock.svg";
|
'assets/icons/automation_functions/password_unlock.svg';
|
||||||
static const String remoteUnlockRequest =
|
static const String remoteUnlockRequest =
|
||||||
"assets/icons/automation_functions/remote_unlock_req.svg";
|
'assets/icons/automation_functions/remote_unlock_req.svg';
|
||||||
static const String cardUnlock =
|
static const String cardUnlock =
|
||||||
"assets/icons/automation_functions/card_unlock.svg";
|
'assets/icons/automation_functions/card_unlock.svg';
|
||||||
static const String motion = "assets/icons/automation_functions/motion.svg";
|
static const String motion = 'assets/icons/automation_functions/motion.svg';
|
||||||
static const String fingerprintUnlock =
|
static const String fingerprintUnlock =
|
||||||
"assets/icons/automation_functions/fingerprint_unlock.svg";
|
'assets/icons/automation_functions/fingerprint_unlock.svg';
|
||||||
|
|
||||||
// Presence Sensor Assets
|
// Presence Sensor Assets
|
||||||
static const String sensorMotionIcon = "assets/icons/sensor_motion_ic.svg";
|
static const String sensorMotionIcon = 'assets/icons/sensor_motion_ic.svg';
|
||||||
static const String sensorPresenceIcon =
|
static const String sensorPresenceIcon =
|
||||||
"assets/icons/sensor_presence_ic.svg";
|
'assets/icons/sensor_presence_ic.svg';
|
||||||
static const String sensorVacantIcon = "assets/icons/sensor_vacant_ic.svg";
|
static const String sensorVacantIcon = 'assets/icons/sensor_vacant_ic.svg';
|
||||||
static const String illuminanceRecordIcon =
|
static const String illuminanceRecordIcon =
|
||||||
"assets/icons/illuminance_record_ic.svg";
|
'assets/icons/illuminance_record_ic.svg';
|
||||||
static const String presenceRecordIcon =
|
static const String presenceRecordIcon =
|
||||||
"assets/icons/presence_record_ic.svg";
|
'assets/icons/presence_record_ic.svg';
|
||||||
static const String helpDescriptionIcon =
|
static const String helpDescriptionIcon =
|
||||||
"assets/icons/help_description_ic.svg";
|
'assets/icons/help_description_ic.svg';
|
||||||
|
|
||||||
static const String lightPulp = "assets/icons/light_pulb.svg";
|
static const String lightPulp = 'assets/icons/light_pulb.svg';
|
||||||
static const String acDevice = "assets/icons/ac_device.svg";
|
static const String acDevice = 'assets/icons/ac_device.svg';
|
||||||
static const String acAirConditioner = "assets/icons/ac_air.svg";
|
static const String acAirConditioner = 'assets/icons/ac_air.svg';
|
||||||
static const String acSun = "assets/icons/ac_sun.svg";
|
static const String acSun = 'assets/icons/ac_sun.svg';
|
||||||
|
|
||||||
//assets/icons/3GangSwitch.svg
|
//assets/icons/3GangSwitch.svg
|
||||||
static const String gangSwitch = "assets/icons/3GangSwitch.svg";
|
static const String gangSwitch = 'assets/icons/3GangSwitch.svg';
|
||||||
//assets/icons/AC.svg
|
//assets/icons/AC.svg
|
||||||
static const String ac = "assets/icons/AC.svg";
|
static const String ac = 'assets/icons/AC.svg';
|
||||||
//assets/icons/Curtain.svg
|
//assets/icons/Curtain.svg
|
||||||
static const String curtain = "assets/icons/Curtain.svg";
|
static const String curtain = 'assets/icons/Curtain.svg';
|
||||||
//assets/icons/doorLock.svg
|
//assets/icons/doorLock.svg
|
||||||
static const String doorLock = "assets/icons/doorLock.svg";
|
static const String doorLock = 'assets/icons/doorLock.svg';
|
||||||
//assets/icons/Gateway.svg
|
//assets/icons/Gateway.svg
|
||||||
static const String gateway = "assets/icons/Gateway.svg";
|
static const String gateway = 'assets/icons/Gateway.svg';
|
||||||
//assets/icons/Light.svg
|
//assets/icons/Light.svg
|
||||||
static const String lightBulb = "assets/icons/Light.svg";
|
static const String lightBulb = 'assets/icons/Light.svg';
|
||||||
//assets/icons/sensors.svg
|
//assets/icons/sensors.svg
|
||||||
static const String sensors = "assets/icons/sensors.svg";
|
static const String sensors = 'assets/icons/sensors.svg';
|
||||||
|
|
||||||
//assets/icons/door_un_look_ic.svg
|
//assets/icons/door_un_look_ic.svg
|
||||||
static const String doorUnlock = 'assets/icons/door_un_look_ic.svg';
|
static const String doorUnlock = 'assets/icons/door_un_look_ic.svg';
|
||||||
@@ -175,7 +175,7 @@ class Assets {
|
|||||||
static const String Gang1SwitchIcon = 'assets/icons/1_Gang_switch_icon.svg';
|
static const String Gang1SwitchIcon = 'assets/icons/1_Gang_switch_icon.svg';
|
||||||
static const String DoorLockIcon = 'assets/icons/door_lock.svg';
|
static const String DoorLockIcon = 'assets/icons/door_lock.svg';
|
||||||
static const String SmartGatewayIcon = 'assets/icons/smart_gateway_icon.svg';
|
static const String SmartGatewayIcon = 'assets/icons/smart_gateway_icon.svg';
|
||||||
static const String curtainIcon = "assets/images/curtain.svg";
|
static const String curtainIcon = 'assets/images/curtain.svg';
|
||||||
static const String unlock = 'assets/icons/unlock_ic.svg';
|
static const String unlock = 'assets/icons/unlock_ic.svg';
|
||||||
static const String firmware = 'assets/icons/firmware.svg';
|
static const String firmware = 'assets/icons/firmware.svg';
|
||||||
//assets/images/scheduling.svg
|
//assets/images/scheduling.svg
|
||||||
@@ -227,12 +227,12 @@ class Assets {
|
|||||||
//assets/icons/2gang.svg
|
//assets/icons/2gang.svg
|
||||||
static const String twoGang = 'assets/icons/2gang.svg';
|
static const String twoGang = 'assets/icons/2gang.svg';
|
||||||
|
|
||||||
static const String frequencyIcon = "assets/icons/frequency_icon.svg";
|
static const String frequencyIcon = 'assets/icons/frequency_icon.svg';
|
||||||
static const String voltMeterIcon = "assets/icons/volt_meter_icon.svg";
|
static const String voltMeterIcon = 'assets/icons/volt_meter_icon.svg';
|
||||||
static const String powerActiveIcon = "assets/icons/power_active_icon.svg";
|
static const String powerActiveIcon = 'assets/icons/power_active_icon.svg';
|
||||||
static const String searchIcon = "assets/icons/search_icon.svg";
|
static const String searchIcon = 'assets/icons/search_icon.svg';
|
||||||
static const String voltageIcon = "assets/icons/voltage_icon.svg";
|
static const String voltageIcon = 'assets/icons/voltage_icon.svg';
|
||||||
static const String speedoMeter = "assets/icons/speedo_meter.svg";
|
static const String speedoMeter = 'assets/icons/speedo_meter.svg';
|
||||||
//assets/icons/account_setting.svg
|
//assets/icons/account_setting.svg
|
||||||
static const String accountSetting = 'assets/icons/account_setting.svg';
|
static const String accountSetting = 'assets/icons/account_setting.svg';
|
||||||
|
|
||||||
@@ -284,99 +284,99 @@ class Assets {
|
|||||||
|
|
||||||
// Assets for functions_icons
|
// Assets for functions_icons
|
||||||
static const String assetsSensitivityFunction =
|
static const String assetsSensitivityFunction =
|
||||||
"assets/icons/functions_icons/sensitivity.svg";
|
'assets/icons/functions_icons/sensitivity.svg';
|
||||||
static const String assetsSensitivityOperationIcon =
|
static const String assetsSensitivityOperationIcon =
|
||||||
"assets/icons/functions_icons/sesitivity_operation_icon.svg";
|
'assets/icons/functions_icons/sesitivity_operation_icon.svg';
|
||||||
static const String assetsAcPower =
|
static const String assetsAcPower =
|
||||||
"assets/icons/functions_icons/ac_power.svg";
|
'assets/icons/functions_icons/ac_power.svg';
|
||||||
static const String assetsAcPowerOFF =
|
static const String assetsAcPowerOFF =
|
||||||
"assets/icons/functions_icons/ac_power_off.svg";
|
'assets/icons/functions_icons/ac_power_off.svg';
|
||||||
static const String assetsChildLock =
|
static const String assetsChildLock =
|
||||||
"assets/icons/functions_icons/child_lock.svg";
|
'assets/icons/functions_icons/child_lock.svg';
|
||||||
static const String assetsFreezing =
|
static const String assetsFreezing =
|
||||||
"assets/icons/functions_icons/freezing.svg";
|
'assets/icons/functions_icons/freezing.svg';
|
||||||
static const String assetsFanSpeed =
|
static const String assetsFanSpeed =
|
||||||
"assets/icons/functions_icons/fan_speed.svg";
|
'assets/icons/functions_icons/fan_speed.svg';
|
||||||
static const String assetsAcCooling =
|
static const String assetsAcCooling =
|
||||||
"assets/icons/functions_icons/ac_cooling.svg";
|
'assets/icons/functions_icons/ac_cooling.svg';
|
||||||
static const String assetsAcHeating =
|
static const String assetsAcHeating =
|
||||||
"assets/icons/functions_icons/ac_heating.svg";
|
'assets/icons/functions_icons/ac_heating.svg';
|
||||||
static const String assetsCelsiusDegrees =
|
static const String assetsCelsiusDegrees =
|
||||||
"assets/icons/functions_icons/celsius_degrees.svg";
|
'assets/icons/functions_icons/celsius_degrees.svg';
|
||||||
static const String assetsTempreture =
|
static const String assetsTempreture =
|
||||||
"assets/icons/functions_icons/tempreture.svg";
|
'assets/icons/functions_icons/tempreture.svg';
|
||||||
static const String assetsAcFanLow =
|
static const String assetsAcFanLow =
|
||||||
"assets/icons/functions_icons/ac_fan_low.svg";
|
'assets/icons/functions_icons/ac_fan_low.svg';
|
||||||
static const String assetsAcFanMiddle =
|
static const String assetsAcFanMiddle =
|
||||||
"assets/icons/functions_icons/ac_fan_middle.svg";
|
'assets/icons/functions_icons/ac_fan_middle.svg';
|
||||||
static const String assetsAcFanHigh =
|
static const String assetsAcFanHigh =
|
||||||
"assets/icons/functions_icons/ac_fan_high.svg";
|
'assets/icons/functions_icons/ac_fan_high.svg';
|
||||||
static const String assetsAcFanAuto =
|
static const String assetsAcFanAuto =
|
||||||
"assets/icons/functions_icons/ac_fan_auto.svg";
|
'assets/icons/functions_icons/ac_fan_auto.svg';
|
||||||
static const String assetsSceneChildLock =
|
static const String assetsSceneChildLock =
|
||||||
"assets/icons/functions_icons/scene_child_lock.svg";
|
'assets/icons/functions_icons/scene_child_lock.svg';
|
||||||
static const String assetsSceneChildUnlock =
|
static const String assetsSceneChildUnlock =
|
||||||
"assets/icons/functions_icons/scene_child_unlock.svg";
|
'assets/icons/functions_icons/scene_child_unlock.svg';
|
||||||
static const String assetsSceneRefresh =
|
static const String assetsSceneRefresh =
|
||||||
"assets/icons/functions_icons/scene_refresh.svg";
|
'assets/icons/functions_icons/scene_refresh.svg';
|
||||||
static const String assetsLightCountdown =
|
static const String assetsLightCountdown =
|
||||||
"assets/icons/functions_icons/light_countdown.svg";
|
'assets/icons/functions_icons/light_countdown.svg';
|
||||||
static const String assetsFarDetection =
|
static const String assetsFarDetection =
|
||||||
"assets/icons/functions_icons/far_detection.svg";
|
'assets/icons/functions_icons/far_detection.svg';
|
||||||
static const String assetsFarDetectionFunction =
|
static const String assetsFarDetectionFunction =
|
||||||
"assets/icons/functions_icons/far_detection_function.svg";
|
'assets/icons/functions_icons/far_detection_function.svg';
|
||||||
static const String assetsIndicator =
|
static const String assetsIndicator =
|
||||||
"assets/icons/functions_icons/indicator.svg";
|
'assets/icons/functions_icons/indicator.svg';
|
||||||
static const String assetsMotionDetection =
|
static const String assetsMotionDetection =
|
||||||
"assets/icons/functions_icons/motion_detection.svg";
|
'assets/icons/functions_icons/motion_detection.svg';
|
||||||
static const String assetsMotionlessDetection =
|
static const String assetsMotionlessDetection =
|
||||||
"assets/icons/functions_icons/motionless_detection.svg";
|
'assets/icons/functions_icons/motionless_detection.svg';
|
||||||
static const String assetsNobodyTime =
|
static const String assetsNobodyTime =
|
||||||
"assets/icons/functions_icons/nobody_time.svg";
|
'assets/icons/functions_icons/nobody_time.svg';
|
||||||
static const String assetsFactoryReset =
|
static const String assetsFactoryReset =
|
||||||
"assets/icons/functions_icons/factory_reset.svg";
|
'assets/icons/functions_icons/factory_reset.svg';
|
||||||
static const String assetsMasterState =
|
static const String assetsMasterState =
|
||||||
"assets/icons/functions_icons/master_state.svg";
|
'assets/icons/functions_icons/master_state.svg';
|
||||||
static const String assetsSwitchAlarmSound =
|
static const String assetsSwitchAlarmSound =
|
||||||
"assets/icons/functions_icons/switch_alarm_sound.svg";
|
'assets/icons/functions_icons/switch_alarm_sound.svg';
|
||||||
static const String assetsResetOff =
|
static const String assetsResetOff =
|
||||||
"assets/icons/functions_icons/reset_off.svg";
|
'assets/icons/functions_icons/reset_off.svg';
|
||||||
|
|
||||||
// Assets for automation_functions
|
// Assets for automation_functions
|
||||||
static const String assetsCardUnlock =
|
static const String assetsCardUnlock =
|
||||||
"assets/icons/functions_icons/automation_functions/card_unlock.svg";
|
'assets/icons/functions_icons/automation_functions/card_unlock.svg';
|
||||||
static const String assetsDoorbell =
|
static const String assetsDoorbell =
|
||||||
"assets/icons/functions_icons/automation_functions/doorbell.svg";
|
'assets/icons/functions_icons/automation_functions/doorbell.svg';
|
||||||
static const String assetsDoorlockNormalOpen =
|
static const String assetsDoorlockNormalOpen =
|
||||||
"assets/icons/functions_icons/automation_functions/doorlock_normal_open.svg";
|
'assets/icons/functions_icons/automation_functions/doorlock_normal_open.svg';
|
||||||
static const String assetsDoubleLock =
|
static const String assetsDoubleLock =
|
||||||
"assets/icons/functions_icons/automation_functions/double_lock.svg";
|
'assets/icons/functions_icons/automation_functions/double_lock.svg';
|
||||||
static const String assetsFingerprintUnlock =
|
static const String assetsFingerprintUnlock =
|
||||||
"assets/icons/functions_icons/automation_functions/fingerprint_unlock.svg";
|
'assets/icons/functions_icons/automation_functions/fingerprint_unlock.svg';
|
||||||
static const String assetsHijackAlarm =
|
static const String assetsHijackAlarm =
|
||||||
"assets/icons/functions_icons/automation_functions/hijack_alarm.svg";
|
'assets/icons/functions_icons/automation_functions/hijack_alarm.svg';
|
||||||
static const String assetsLockAlarm =
|
static const String assetsLockAlarm =
|
||||||
"assets/icons/functions_icons/automation_functions/lock_alarm.svg";
|
'assets/icons/functions_icons/automation_functions/lock_alarm.svg';
|
||||||
static const String assetsPasswordUnlock =
|
static const String assetsPasswordUnlock =
|
||||||
"assets/icons/functions_icons/automation_functions/password_unlock.svg";
|
'assets/icons/functions_icons/automation_functions/password_unlock.svg';
|
||||||
static const String assetsRemoteUnlockReq =
|
static const String assetsRemoteUnlockReq =
|
||||||
"assets/icons/functions_icons/automation_functions/remote_unlock_req.svg";
|
'assets/icons/functions_icons/automation_functions/remote_unlock_req.svg';
|
||||||
static const String assetsRemoteUnlockViaApp =
|
static const String assetsRemoteUnlockViaApp =
|
||||||
"assets/icons/functions_icons/automation_functions/remote_unlock_via_app.svg";
|
'assets/icons/functions_icons/automation_functions/remote_unlock_via_app.svg';
|
||||||
static const String assetsResidualElectricity =
|
static const String assetsResidualElectricity =
|
||||||
"assets/icons/functions_icons/automation_functions/residual_electricity.svg";
|
'assets/icons/functions_icons/automation_functions/residual_electricity.svg';
|
||||||
static const String assetsTempPasswordUnlock =
|
static const String assetsTempPasswordUnlock =
|
||||||
"assets/icons/functions_icons/automation_functions/temp_password_unlock.svg";
|
'assets/icons/functions_icons/automation_functions/temp_password_unlock.svg';
|
||||||
static const String assetsSelfTestResult =
|
static const String assetsSelfTestResult =
|
||||||
"assets/icons/functions_icons/automation_functions/self_test_result.svg";
|
'assets/icons/functions_icons/automation_functions/self_test_result.svg';
|
||||||
static const String assetsPresence =
|
static const String assetsPresence =
|
||||||
"assets/icons/functions_icons/automation_functions/presence.svg";
|
'assets/icons/functions_icons/automation_functions/presence.svg';
|
||||||
static const String assetsMotion =
|
static const String assetsMotion =
|
||||||
"assets/icons/functions_icons/automation_functions/motion.svg";
|
'assets/icons/functions_icons/automation_functions/motion.svg';
|
||||||
static const String assetsCurrentTemp =
|
static const String assetsCurrentTemp =
|
||||||
"assets/icons/functions_icons/automation_functions/current_temp.svg";
|
'assets/icons/functions_icons/automation_functions/current_temp.svg';
|
||||||
static const String assetsPresenceState =
|
static const String assetsPresenceState =
|
||||||
"assets/icons/functions_icons/automation_functions/presence_state.svg";
|
'assets/icons/functions_icons/automation_functions/presence_state.svg';
|
||||||
//assets/icons/routine/automation.svg
|
//assets/icons/routine/automation.svg
|
||||||
static const String automation = 'assets/icons/routine/automation.svg';
|
static const String automation = 'assets/icons/routine/automation.svg';
|
||||||
static const String searchIconUser = 'assets/icons/search_icon_user.svg';
|
static const String searchIconUser = 'assets/icons/search_icon_user.svg';
|
||||||
@@ -501,4 +501,5 @@ class Assets {
|
|||||||
static const String aqiAirQuality = 'assets/icons/aqi_air_quality.svg';
|
static const String aqiAirQuality = 'assets/icons/aqi_air_quality.svg';
|
||||||
static const String temperatureAqiSidebar = 'assets/icons/thermometer.svg';
|
static const String temperatureAqiSidebar = 'assets/icons/thermometer.svg';
|
||||||
static const String humidityAqiSidebar = 'assets/icons/humidity.svg';
|
static const String humidityAqiSidebar = 'assets/icons/humidity.svg';
|
||||||
|
static const String autocadOccupancyImage = 'assets/images/autocad_occupancy_image.png';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user