4scene_and_6scene

This commit is contained in:
mohammad
2024-11-24 11:49:56 +03:00
parent 3d17c588c5
commit 6733c4f4ab
7 changed files with 32 additions and 3 deletions

View File

@ -0,0 +1,9 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M38.0142 39.2553L35.3682 40H20.9308H19.9999H19.0691H1.24111C0.555643 40 0 39.4444 0 38.7589V1.24111C0 0.555643 0.555643 0 1.24111 0H19.0682H20.1226H20.9543H35.4255L38.2625 1.24111C38.9479 1.24111 39.5036 1.79675 39.5036 2.48221L39.2553 38.0142C39.2553 38.6997 38.6997 39.2553 38.0142 39.2553Z" fill="#E9E9E9"/>
<path d="M38.7589 0H35.0356C35.721 0 36.2767 0.555643 36.2767 1.24111V38.7589C36.2767 39.4444 35.721 40 35.0356 40H38.7589C39.4444 40 40 39.4444 40 38.7589V1.24111C40 0.555643 39.4444 0 38.7589 0Z" fill="#D1D1D1"/>
<path opacity="0.6" d="M12.0284 31.8319V33.3213C12.0284 34.0067 11.6087 34.5624 11.0909 34.5624H6.96594C6.44816 34.5624 6.02844 34.0067 6.02844 33.3213V31.8319C6.02844 31.1465 6.44816 30.5908 6.96594 30.5908H11.0909C11.6087 30.5908 12.0284 31.1465 12.0284 31.8319Z" fill="#023DFE" fill-opacity="0.5"/>
<path opacity="0.6" d="M12.0284 7.24111V8.73044C12.0284 9.4159 11.6087 9.97154 11.0909 9.97154H6.96594C6.44816 9.97154 6.02844 9.4159 6.02844 8.73044V7.24111C6.02844 6.55565 6.44816 6 6.96594 6H11.0909C11.6087 6 12.0284 6.55565 12.0284 7.24111Z" fill="#023DFE" fill-opacity="0.5"/>
<path opacity="0.6" d="M26.0285 31.8319V33.3213C26.0285 34.0067 26.4482 34.5624 26.966 34.5624H31.091C31.6088 34.5624 32.0285 34.0067 32.0285 33.3213V31.8319C32.0285 31.1465 31.6088 30.5908 31.091 30.5908H26.966C26.4482 30.5908 26.0285 31.1465 26.0285 31.8319Z" fill="#023DFE" fill-opacity="0.5"/>
<path opacity="0.6" d="M26.0285 7.24111V8.73044C26.0285 9.4159 26.4482 9.97154 26.966 9.97154H31.091C31.6088 9.97154 32.0285 9.4159 32.0285 8.73044V7.24111C32.0285 6.55565 31.6088 6 31.091 6H26.966C26.4482 6 26.0285 6.55565 26.0285 7.24111Z" fill="#023DFE" fill-opacity="0.5"/>
<path d="M19.0691 0H20.9308V40H19.0691V0Z" fill="#D1D1D1"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,12 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M38.0142 39.2553L35.3682 40H20.9308H19.9999H19.0691H1.24111C0.555643 40 0 39.4444 0 38.7589V1.24111C0 0.555643 0.555643 0 1.24111 0H19.0682H20.1226H20.9543H35.4255L38.2625 1.24111C38.9479 1.24111 39.5036 1.79675 39.5036 2.48221L39.2553 38.0142C39.2553 38.6997 38.6997 39.2553 38.0142 39.2553Z" fill="#E9E9E9"/>
<path d="M38.7589 0H35.0356C35.721 0 36.2767 0.555643 36.2767 1.24111V38.7589C36.2767 39.4444 35.721 40 35.0356 40H38.7589C39.4444 40 40 39.4444 40 38.7589V1.24111C40 0.555643 39.4444 0 38.7589 0Z" fill="#D1D1D1"/>
<path opacity="0.6" d="M8.64062 31.8319V33.3213C8.64062 34.0067 8.22091 34.5624 7.70312 34.5624H3.57813C3.06034 34.5624 2.64062 34.0067 2.64062 33.3213V31.8319C2.64062 31.1465 3.06034 30.5908 3.57813 30.5908H7.70312C8.22091 30.5908 8.64062 31.1465 8.64062 31.8319Z" fill="#023DFE" fill-opacity="0.5"/>
<path opacity="0.6" d="M8.64062 7.24111V8.73044C8.64062 9.4159 8.22091 9.97154 7.70312 9.97154H3.57813C3.06034 9.97154 2.64062 9.4159 2.64062 8.73044V7.24111C2.64062 6.55565 3.06034 6 3.57813 6H7.70312C8.22091 6 8.64062 6.55565 8.64062 7.24111Z" fill="#023DFE" fill-opacity="0.5"/>
<path opacity="0.6" d="M27.6406 31.8319V33.3213C27.6406 34.0067 28.0603 34.5624 28.5781 34.5624H32.7031C33.2209 34.5624 33.6406 34.0067 33.6406 33.3213V31.8319C33.6406 31.1465 33.2209 30.5908 32.7031 30.5908H28.5781C28.0603 30.5908 27.6406 31.1465 27.6406 31.8319Z" fill="#023DFE" fill-opacity="0.5"/>
<path opacity="0.6" d="M27.6406 7.24111V8.73044C27.6406 9.4159 28.0603 9.97154 28.5781 9.97154H32.7031C33.2209 9.97154 33.6406 9.4159 33.6406 8.73044V7.24111C33.6406 6.55565 33.2209 6 32.7031 6H28.5781C28.0603 6 27.6406 6.55565 27.6406 7.24111Z" fill="#023DFE" fill-opacity="0.5"/>
<path opacity="0.6" d="M15.0625 31.8319V33.3213C15.0625 34.0067 15.4822 34.5624 16 34.5624H20.125C20.6428 34.5624 21.0625 34.0067 21.0625 33.3213V31.8319C21.0625 31.1465 20.6428 30.5908 20.125 30.5908H16C15.4822 30.5908 15.0625 31.1465 15.0625 31.8319Z" fill="#023DFE" fill-opacity="0.5"/>
<path opacity="0.6" d="M15.0625 7.24111V8.73044C15.0625 9.4159 15.4822 9.97154 16 9.97154H20.125C20.6428 9.97154 21.0625 9.4159 21.0625 8.73044V7.24111C21.0625 6.55565 20.6428 6 20.125 6H16C15.4822 6 15.0625 6.55565 15.0625 7.24111Z" fill="#023DFE" fill-opacity="0.5"/>
<path d="M23.125 0H24.9867V40H23.125V0Z" fill="#D1D1D1"/>
<path d="M11.1719 0H13.0335V40H11.1719V0Z" fill="#D1D1D1"/>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -1,6 +1,7 @@
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:syncrow_app/features/app_layout/bloc/home_cubit.dart';
import 'package:syncrow_app/features/devices/bloc/6_scene_switch_bloc/6_scene_event.dart';
import 'package:syncrow_app/features/devices/bloc/6_scene_switch_bloc/6_scene_state.dart';
import 'package:syncrow_app/features/devices/model/device_control_model.dart';
@ -129,8 +130,8 @@ class SixSceneBloc extends Bloc<SixSceneEvent, SixSceneState> {
allDevices.forEach((element) {
allDevicesIds.add(element.uuid!);
});
await HomeCubit.getInstance().fetchUnitsByUserId();
CustomSnackBar.displaySnackBar('Save Successfully');
emit(SaveSelectionSuccessState());
}
} catch (e) {

View File

@ -1,6 +1,7 @@
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:syncrow_app/features/app_layout/bloc/home_cubit.dart';
import 'package:syncrow_app/features/devices/bloc/four_scene_bloc/four_scene_event.dart';
import 'package:syncrow_app/features/devices/bloc/four_scene_bloc/four_scene_state.dart';
import 'package:syncrow_app/features/devices/model/device_control_model.dart';
@ -482,7 +483,6 @@ class FourSceneBloc extends Bloc<FourSceneEvent, FourSceneState> {
}
emit(UpdateStateList(groupDevices: groupDevices, devices: devices));
}
void _assignDevice(
AssignRoomEvent event, Emitter<FourSceneState> emit) async {
try {
@ -498,6 +498,7 @@ class FourSceneBloc extends Bloc<FourSceneEvent, FourSceneState> {
allDevices.forEach((element) {
allDevicesIds.add(element.uuid!);
});
await HomeCubit.getInstance().fetchUnitsByUserId();
CustomSnackBar.displaySnackBar('Save Successfully');
emit(SaveSelectionSuccessState());

View File

@ -78,6 +78,10 @@ class DeviceModel {
tempIcon = Assets.waterLeakIcon;
} else if (type == DeviceType.PC) {
tempIcon = Assets.powerClampIcon;
} else if (type == DeviceType.FourScene) {
tempIcon = Assets.fourSceneHomeIcon;
} else if (type == DeviceType.SixScene) {
tempIcon = Assets.sixSceneHomeIcon;
} else {
tempIcon = Assets.assetsIconsLogo;
}

View File

@ -1118,4 +1118,6 @@ class Assets {
static const String minusIcon = "assets/icons/minus_icon.svg";
static const String addDevicesIcon = "assets/icons/add_devices_icon.svg";
static const String fourSceneIcon = "assets/icons/four_scene_icon.svg";
static const String fourSceneHomeIcon = "assets/icons/four_scene_home_icon.svg";
static const String sixSceneHomeIcon = "assets/icons/six_scene_home_icon.svg";
}

View File

@ -5,7 +5,7 @@ description: This is the mobile application project, developed with Flutter for
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.0.7+40
version: 1.0.8+41
environment:
sdk: ">=3.0.6 <4.0.0"