mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-24 13:37:55 +00:00
!! BIG CHANGE TO ASSETS GEN !!
changed the method of generating assets to be more declrative when it comes to names of the assets. it now include the file path name e.g (asset in the path "assets/images/home-images/home.png" will be generated as this "String assetsImagesHomeImageshome = "path" ". this will be very helpful in the future when we want to orgnize the assets dir.
This commit is contained in:
@@ -54,7 +54,7 @@ class AcInterface extends StatelessWidget {
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesBackground,
|
||||
Assets.assetsImagesBackground,
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
opacity: 0.4,
|
||||
|
||||
@@ -31,7 +31,8 @@ class AcInterfaceControls extends StatelessWidget {
|
||||
child: DefaultContainer(
|
||||
height: 55,
|
||||
child: Center(
|
||||
child: SvgPicture.asset(Assets.iconsAutomatedClock),
|
||||
child:
|
||||
SvgPicture.asset(Assets.assetsIconsAutomatedClock),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -43,7 +44,7 @@ class AcInterfaceControls extends StatelessWidget {
|
||||
child: DefaultContainer(
|
||||
height: 55,
|
||||
child: Center(
|
||||
child: SvgPicture.asset(Assets.iconsLock),
|
||||
child: SvgPicture.asset(Assets.assetsIconsLock),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -128,7 +128,7 @@ class AcInterfaceTempUnit extends StatelessWidget {
|
||||
}
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
Assets.iconsMinus,
|
||||
Assets.assetsIconsMinus,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -178,7 +178,7 @@ class AcInterfaceTempUnit extends StatelessWidget {
|
||||
}
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
Assets.iconsPlus,
|
||||
Assets.assetsIconsPlus,
|
||||
height: 24,
|
||||
width: 24,
|
||||
),
|
||||
|
||||
@@ -35,7 +35,7 @@ class ACTempWidget extends StatelessWidget {
|
||||
// .setACTemp(DeviceModel, DeviceModel.temperature - 0.5);
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
Assets.iconsMinus,
|
||||
Assets.assetsIconsMinus,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -55,7 +55,7 @@ class ACTempWidget extends StatelessWidget {
|
||||
// .setACTemp(DeviceModel, DeviceModel.temperature + 0.5);
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
Assets.iconsPlus,
|
||||
Assets.assetsIconsPlus,
|
||||
height: 24,
|
||||
width: 24,
|
||||
),
|
||||
|
||||
@@ -41,7 +41,7 @@ class ACsView extends StatelessWidget {
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesBackground,
|
||||
Assets.assetsImagesBackground,
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
opacity: 0.4,
|
||||
|
||||
@@ -30,7 +30,7 @@ class UniversalACTemp extends StatelessWidget {
|
||||
// .setTempToAll(DevicesCubit.universalACTemp - .5);
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
Assets.iconsMinus,
|
||||
Assets.assetsIconsMinus,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -50,7 +50,7 @@ class UniversalACTemp extends StatelessWidget {
|
||||
// .setTempToAll(DevicesCubit.universalACTemp + .5);
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
Assets.iconsPlus,
|
||||
Assets.assetsIconsPlus,
|
||||
height: 24,
|
||||
width: 24,
|
||||
),
|
||||
|
||||
@@ -1,27 +1,158 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:syncrow_app/features/devices/bloc/devices_cubit.dart';
|
||||
import 'package:syncrow_app/features/devices/view/widgets/curtains/blinds_blades.dart';
|
||||
import 'package:syncrow_app/features/devices/model/device_model.dart';
|
||||
import 'package:syncrow_app/features/shared_widgets/default_scaffold.dart';
|
||||
import 'package:syncrow_app/generated/assets.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/constants.dart';
|
||||
|
||||
class BlindsView extends StatelessWidget {
|
||||
const BlindsView({super.key});
|
||||
|
||||
const BlindsView({
|
||||
super.key,
|
||||
this.blind,
|
||||
});
|
||||
final DeviceModel? blind;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocProvider(
|
||||
create: (context) => DevicesCubit.getInstance(),
|
||||
child: BlocBuilder<DevicesCubit, DevicesState>(
|
||||
builder: (context, state) {
|
||||
return const DefaultScaffold(
|
||||
title: 'Blinds',
|
||||
return DefaultScaffold(
|
||||
title: blind?.name ?? 'Blinds',
|
||||
child: Column(
|
||||
children: [
|
||||
Spacer(),
|
||||
BlindsBlades(),
|
||||
// SizedBox(height: 80),
|
||||
// BlindsBottons(),
|
||||
Spacer(),
|
||||
Column(
|
||||
children: [
|
||||
Stack(
|
||||
alignment: Alignment.topCenter,
|
||||
children: [
|
||||
Container(
|
||||
height: 340,
|
||||
width: 365,
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.assetsImagesWindow,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 15, bottom: 10),
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.linear,
|
||||
height: DevicesCubit.get(context).blindWindowHight,
|
||||
width: 270,
|
||||
child: Stack(
|
||||
children: List.generate(
|
||||
25,
|
||||
(index) {
|
||||
double spacing = DevicesCubit.get(context)
|
||||
.blindWindowHight /
|
||||
24;
|
||||
double topPosition = index * spacing;
|
||||
return AnimatedPositioned(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.linear,
|
||||
top: topPosition,
|
||||
child: SizedBox(
|
||||
height: 10,
|
||||
width: 270,
|
||||
child: Image.asset(
|
||||
Assets.assetsImagesHorizintalBlade,
|
||||
fit: BoxFit.fill,
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 80),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
DecoratedBox(
|
||||
decoration:
|
||||
BoxDecoration(shape: BoxShape.circle, boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.grey.withOpacity(0.5),
|
||||
spreadRadius: 1,
|
||||
blurRadius: 5,
|
||||
offset: const Offset(3, 3),
|
||||
),
|
||||
]),
|
||||
child: InkWell(
|
||||
overlayColor:
|
||||
MaterialStateProperty.all(Colors.transparent),
|
||||
onTap: () {
|
||||
// DevicesCubit.get(context).setHight(false);
|
||||
DevicesCubit.get(context).openCurtain(
|
||||
blind?.productType! ?? DeviceType.Blind);
|
||||
},
|
||||
child: Image.asset(
|
||||
Assets.assetsImagesUp,
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
),
|
||||
),
|
||||
DecoratedBox(
|
||||
decoration:
|
||||
BoxDecoration(shape: BoxShape.circle, boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.grey.withOpacity(0.5),
|
||||
spreadRadius: 1,
|
||||
blurRadius: 5,
|
||||
offset: const Offset(3, 3),
|
||||
),
|
||||
]),
|
||||
child: InkWell(
|
||||
overlayColor:
|
||||
MaterialStateProperty.all(Colors.transparent),
|
||||
onTap: () {
|
||||
DevicesCubit.get(context).pauseCurtain();
|
||||
},
|
||||
child: Image.asset(
|
||||
Assets.assetsImagesPause,
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
),
|
||||
),
|
||||
DecoratedBox(
|
||||
decoration:
|
||||
BoxDecoration(shape: BoxShape.circle, boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.grey.withOpacity(0.5),
|
||||
spreadRadius: 1,
|
||||
blurRadius: 5,
|
||||
offset: const Offset(3, 3),
|
||||
),
|
||||
]),
|
||||
child: InkWell(
|
||||
overlayColor:
|
||||
MaterialStateProperty.all(Colors.transparent),
|
||||
onTap: () {
|
||||
DevicesCubit.get(context).closeCurtain(
|
||||
blind?.productType! ?? DeviceType.Blind);
|
||||
},
|
||||
child: Image.asset(
|
||||
Assets.assetsImagesDown,
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
// ignore_for_file: avoid_print
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:syncrow_app/features/devices/bloc/devices_cubit.dart';
|
||||
import 'package:syncrow_app/generated/assets.dart';
|
||||
|
||||
class BlindsBlades extends StatelessWidget {
|
||||
const BlindsBlades({
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BlocBuilder<DevicesCubit, DevicesState>(
|
||||
builder: (context, state) {
|
||||
return Column(
|
||||
children: [
|
||||
Stack(
|
||||
alignment: Alignment.topCenter,
|
||||
children: [
|
||||
Container(
|
||||
height: 340,
|
||||
width: 365,
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesWindow,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 15, bottom: 10),
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.linear,
|
||||
height: DevicesCubit.get(context).height,
|
||||
width: 270,
|
||||
child: Stack(
|
||||
children: List.generate(
|
||||
25,
|
||||
(index) {
|
||||
double spacing =
|
||||
DevicesCubit.get(context).height / 24;
|
||||
double topPosition = index * spacing;
|
||||
return AnimatedPositioned(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.linear,
|
||||
top: topPosition,
|
||||
child: SizedBox(
|
||||
height: 10,
|
||||
width: 270,
|
||||
child: Image.asset(
|
||||
Assets.imagesHorizintalBlade,
|
||||
fit: BoxFit.fill,
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 80),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
DecoratedBox(
|
||||
decoration: BoxDecoration(shape: BoxShape.circle, boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.grey.withOpacity(0.5),
|
||||
spreadRadius: 1,
|
||||
blurRadius: 5,
|
||||
offset: const Offset(3, 3),
|
||||
),
|
||||
]),
|
||||
child: InkWell(
|
||||
overlayColor: MaterialStateProperty.all(Colors.transparent),
|
||||
onTap: () {
|
||||
// DevicesCubit.get(context).setHight(false);
|
||||
DevicesCubit.get(context).openCurtain();
|
||||
},
|
||||
child: Image.asset(
|
||||
Assets.imagesUp,
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
),
|
||||
),
|
||||
DecoratedBox(
|
||||
decoration: BoxDecoration(shape: BoxShape.circle, boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.grey.withOpacity(0.5),
|
||||
spreadRadius: 1,
|
||||
blurRadius: 5,
|
||||
offset: const Offset(3, 3),
|
||||
),
|
||||
]),
|
||||
child: InkWell(
|
||||
overlayColor: MaterialStateProperty.all(Colors.transparent),
|
||||
onTap: () {
|
||||
DevicesCubit.get(context).pauseCurtain();
|
||||
},
|
||||
child: Image.asset(
|
||||
Assets.imagesPause,
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
),
|
||||
),
|
||||
DecoratedBox(
|
||||
decoration: BoxDecoration(shape: BoxShape.circle, boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.grey.withOpacity(0.5),
|
||||
spreadRadius: 1,
|
||||
blurRadius: 5,
|
||||
offset: const Offset(3, 3),
|
||||
),
|
||||
]),
|
||||
child: InkWell(
|
||||
overlayColor: MaterialStateProperty.all(Colors.transparent),
|
||||
onTap: () {
|
||||
// DevicesCubit.get(context).setHight(true);
|
||||
// DevicesCubit.get(context).openCurtain();
|
||||
DevicesCubit.get(context).closeCurtain();
|
||||
},
|
||||
child: Image.asset(
|
||||
Assets.imagesDown,
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// import 'package:flutter/material.dart';
|
||||
// import 'package:syncrow_app/features/devices/bloc/devices_cubit.dart';
|
||||
// import 'package:syncrow_app/generated/assets.dart';
|
||||
// import 'package:syncrow_app/generated2/assets.dart';
|
||||
|
||||
// class BlindsBottons extends StatelessWidget {
|
||||
// const BlindsBottons({
|
||||
@@ -28,7 +28,7 @@
|
||||
// DevicesCubit.get(context).closeCurtain();
|
||||
// },
|
||||
// child: Image.asset(
|
||||
// Assets.imagesUp,
|
||||
// Assets.assetsImagesUp,
|
||||
// width: 60,
|
||||
// height: 60,
|
||||
// ),
|
||||
@@ -49,7 +49,7 @@
|
||||
// // DevicesCubit.get(context).setHight(false);
|
||||
// },
|
||||
// child: Image.asset(
|
||||
// Assets.imagesPause,
|
||||
// Assets.assetsImagesPause,
|
||||
// width: 60,
|
||||
// height: 60,
|
||||
// ),
|
||||
@@ -71,7 +71,7 @@
|
||||
// DevicesCubit.get(context).openCurtain();
|
||||
// },
|
||||
// child: Image.asset(
|
||||
// Assets.imagesDown,
|
||||
// Assets.assetsImagesDown,
|
||||
// width: 60,
|
||||
// height: 60,
|
||||
// ),
|
||||
|
||||
@@ -29,7 +29,7 @@ class DevicesModeTab extends StatelessWidget {
|
||||
height: 30,
|
||||
width: 25,
|
||||
child: SvgPicture.asset(
|
||||
Assets.iconsWinter,
|
||||
Assets.assetsIconsWinter,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
@@ -57,7 +57,7 @@ class DevicesModeTab extends StatelessWidget {
|
||||
height: 30,
|
||||
width: 25,
|
||||
child: SvgPicture.asset(
|
||||
Assets.iconsSummer,
|
||||
Assets.assetsIconsSummer,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -55,7 +55,7 @@ class LightInterfaceRecentColor extends StatelessWidget {
|
||||
color: ColorsManager.greyColor,
|
||||
),
|
||||
SvgPicture.asset(
|
||||
Assets.iconsKalvin,
|
||||
Assets.assetsIconsKalvin,
|
||||
height: 40,
|
||||
width: 40,
|
||||
),
|
||||
@@ -63,7 +63,7 @@ class LightInterfaceRecentColor extends StatelessWidget {
|
||||
width: 10,
|
||||
),
|
||||
SvgPicture.asset(
|
||||
Assets.iconsColorWheel,
|
||||
Assets.assetsIconsColorWheel,
|
||||
height: 40,
|
||||
width: 40,
|
||||
),
|
||||
|
||||
@@ -46,7 +46,7 @@ class LightsView extends StatelessWidget {
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesBackground,
|
||||
Assets.assetsImagesBackground,
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
opacity: 0.4,
|
||||
|
||||
@@ -14,7 +14,7 @@ class NoDevicesView extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Image.asset(
|
||||
Assets.imagesBoxEmpty,
|
||||
Assets.assetsImagesBoxEmpty,
|
||||
opacity: const AlwaysStoppedAnimation(0.5),
|
||||
scale: 1,
|
||||
width: 140,
|
||||
|
||||
@@ -51,7 +51,7 @@ class CeilingSensorInterface extends StatelessWidget {
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesBackground,
|
||||
Assets.assetsImagesBackground,
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
opacity: 0.4,
|
||||
@@ -104,8 +104,9 @@ class CeilingSensorInterface extends StatelessWidget {
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
state == 'presence'
|
||||
? Assets.presenceSensorAssetsPresence
|
||||
: Assets.presenceSensorAssetsPresenceSensorMotion,
|
||||
? Assets.assetsIconsPresenceSensorAssetsPresence
|
||||
: Assets
|
||||
.assetsIconsPresenceSensorAssetsPresenceSensorMotion,
|
||||
width: 100,
|
||||
height: 100,
|
||||
// colorFilter: ColorFilter.mode(
|
||||
@@ -258,17 +259,17 @@ class CeilingSensorInterface extends StatelessWidget {
|
||||
var ceilingSensorButtons = [
|
||||
{
|
||||
'title': 'Parameter Settings',
|
||||
'icon': Assets.presenceSensorAssetsParameterSettings,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsParameterSettings,
|
||||
'page': null,
|
||||
},
|
||||
{
|
||||
'title': 'Induction History',
|
||||
'icon': Assets.presenceSensorAssetsInductionRecording,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsInductionRecording,
|
||||
'page': null,
|
||||
},
|
||||
{
|
||||
'title': 'Help Description',
|
||||
'icon': Assets.presenceSensorAssetsHelpDescription,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsHelpDescription,
|
||||
'page': null,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -213,38 +213,38 @@ class ParametersList extends StatelessWidget {
|
||||
//{"result":{"productId":"awarhusb","productType":"WPS","status":[{"code":"presence_state","value":"none"},{"code":"far_detection","value":75},{"code":"presence_time","value":0},{"code":"motion_sensitivity_value","value":5},{"code":"motionless_sensitivity","value":5},{"code":"dis_current","value":214},{"code":"illuminance_value","value":231},{"code":"indicator","value":true}]},"success":true}
|
||||
final List<Map<String, Object?>> wallSensorButtons = const [
|
||||
{
|
||||
'icon': Assets.presenceSensorAssetsTime,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsTime,
|
||||
'title': 'Presence Time',
|
||||
'code': 'presence_time',
|
||||
},
|
||||
{
|
||||
'icon': Assets.presenceSensorAssetsDistance,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsDistance,
|
||||
'title': 'Current Distance',
|
||||
'code': 'dis_current',
|
||||
},
|
||||
{
|
||||
'icon': Assets.presenceSensorAssetsIlluminanceValue,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsIlluminanceValue,
|
||||
'title': 'Illuminance Value',
|
||||
'code': 'illuminance_value',
|
||||
},
|
||||
{
|
||||
'icon': Assets.presenceSensorAssetsEmpty,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsEmpty,
|
||||
'title': 'Nobody Time',
|
||||
'code': null,
|
||||
//TODO: Implement the nobody time
|
||||
},
|
||||
{
|
||||
'icon': Assets.presenceSensorAssetsIndicator,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsIndicator,
|
||||
'title': 'Indicator',
|
||||
'code': 'indicator',
|
||||
},
|
||||
{
|
||||
'icon': Assets.presenceSensorAssetsRecord,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsRecord,
|
||||
'title': 'Presence Record',
|
||||
'code': null
|
||||
},
|
||||
{
|
||||
'icon': Assets.presenceSensorAssetsIlluminanceRecord,
|
||||
'icon': Assets.assetsIconsPresenceSensorAssetsIlluminanceRecord,
|
||||
'title': 'Illuminance Record',
|
||||
'code': null
|
||||
},
|
||||
|
||||
@@ -16,8 +16,8 @@ class PresenceIndicator extends StatelessWidget {
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
state == 'presence'
|
||||
? Assets.presenceSensorAssetsPresence
|
||||
: Assets.presenceSensorAssetsPresenceSensorMotion,
|
||||
? Assets.assetsIconsPresenceSensorAssetsPresence
|
||||
: Assets.assetsIconsPresenceSensorAssetsPresenceSensorMotion,
|
||||
width: 100,
|
||||
height: 100,
|
||||
),
|
||||
|
||||
@@ -52,7 +52,7 @@ class WallMountedInterface extends StatelessWidget {
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesBackground,
|
||||
Assets.assetsImagesBackground,
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
opacity: 0.4,
|
||||
|
||||
@@ -163,7 +163,7 @@ class _DoorLockButtonState extends State<DoorLockButton>
|
||||
),
|
||||
child: Center(
|
||||
child: SvgPicture.asset(
|
||||
Assets.doorlockAssetsLockIcon,
|
||||
Assets.assetsIconsDoorlockAssetsLockIcon,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -69,22 +69,22 @@ class DoorLockGrid extends StatelessWidget {
|
||||
List<Map<String, dynamic>> doorLockButtons = [
|
||||
{
|
||||
'title': 'Unlocking Records',
|
||||
'image': Assets.doorlockAssetsUnlockingRecords,
|
||||
'image': Assets.assetsIconsDoorlockAssetsUnlockingRecords,
|
||||
'page': const UnlockingRecordsView(),
|
||||
},
|
||||
{
|
||||
'title': 'Memebers Managment',
|
||||
'image': Assets.doorlockAssetsMembersManagement,
|
||||
'image': Assets.assetsIconsDoorlockAssetsMembersManagement,
|
||||
'page': const MembersManagementView(),
|
||||
},
|
||||
{
|
||||
'title': 'Temporary Password',
|
||||
'image': Assets.doorlockAssetsTemporaryPassword,
|
||||
'image': Assets.assetsIconsDoorlockAssetsTemporaryPassword,
|
||||
'page': null,
|
||||
},
|
||||
{
|
||||
'title': 'Smart Linkage',
|
||||
'image': Assets.doorlockAssetsSmartLinkage,
|
||||
'image': Assets.assetsIconsDoorlockAssetsSmartLinkage,
|
||||
'page': const SmartLinkgeView()
|
||||
},
|
||||
];
|
||||
|
||||
@@ -42,7 +42,7 @@ class DoorInterface extends StatelessWidget {
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesBackground,
|
||||
Assets.assetsImagesBackground,
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
opacity: 0.4,
|
||||
|
||||
@@ -12,8 +12,9 @@ class DoorLockStatusBar extends StatelessWidget {
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
SvgPicture.asset(Assets.iconsWifi),
|
||||
SvgPicture.asset(Assets.dmOffPerOnchargOfflowOffpmOffstDefaultdmOff),
|
||||
SvgPicture.asset(Assets.assetsIconsWifi),
|
||||
SvgPicture.asset(Assets
|
||||
.assetsIconsBatteryDmOffPerOnchargOfflowOffpmOffstDefaultdmOff),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,8 @@ class SmartLinkgeView extends StatelessWidget {
|
||||
SizedBox(
|
||||
width: 45,
|
||||
height: 40,
|
||||
child: SvgPicture.asset(Assets.linkageIconsFamilyHome),
|
||||
child: SvgPicture.asset(
|
||||
Assets.assetsIconsLinkageIconsFamilyHome),
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
const Expanded(
|
||||
@@ -62,7 +63,8 @@ class SmartLinkgeView extends StatelessWidget {
|
||||
SizedBox(
|
||||
width: 45,
|
||||
height: 40,
|
||||
child: SvgPicture.asset(Assets.linkageIconsDoorLockAlarm),
|
||||
child: SvgPicture.asset(
|
||||
Assets.assetsIconsLinkageIconsDoorLockAlarm),
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
const Expanded(
|
||||
|
||||
@@ -48,13 +48,13 @@ class UnlockingRecordsView extends StatelessWidget {
|
||||
child: records[i]['method'] ==
|
||||
UnlockingMethod.Fingerprint
|
||||
? SvgPicture.asset(Assets
|
||||
.unlockingMethodsIconsFingerprint)
|
||||
.assetsIconsUnlockingMethodsIconsFingerprint)
|
||||
: records[i]['method'] ==
|
||||
UnlockingMethod.Remote
|
||||
? SvgPicture.asset(Assets
|
||||
.unlockingMethodsIconsRemote)
|
||||
.assetsIconsUnlockingMethodsIconsRemote)
|
||||
: SvgPicture.asset(Assets
|
||||
.unlockingMethodsIconsFace),
|
||||
.assetsIconsUnlockingMethodsIconsFace),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 13,
|
||||
|
||||
@@ -66,8 +66,8 @@ class GangSwitch extends StatelessWidget {
|
||||
child: Center(child: CircularProgressIndicator()))
|
||||
: SvgPicture.asset(
|
||||
control.value!
|
||||
? Assets.iconsLightSwitchOn
|
||||
: Assets.iconsLightSwitchOff,
|
||||
? Assets.assetsIconsLightSwitchOn
|
||||
: Assets.assetsIconsLightSwitchOff,
|
||||
fit: BoxFit.fill,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -40,7 +40,7 @@ class ThreeGangInterface extends StatelessWidget {
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesBackground,
|
||||
Assets.assetsImagesBackground,
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
opacity: 0.4,
|
||||
|
||||
Reference in New Issue
Block a user