mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 21:47:54 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user