mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 09:45:22 +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:
@ -51,7 +51,7 @@ class DefaultScaffold extends StatelessWidget {
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage(
|
||||
Assets.imagesBackground,
|
||||
Assets.assetsImagesBackground,
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
opacity: 0.4,
|
||||
|
@ -14,7 +14,9 @@ class SyncrowLogo extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Image.asset(isDark ? Assets.imagesBlackLogo : Assets.imagesWhiteLogo,
|
||||
scale: 1, width: width);
|
||||
return Image.asset(
|
||||
isDark ? Assets.assetsImagesBlackLogo : Assets.assetsImagesWhiteLogo,
|
||||
scale: 1,
|
||||
width: width);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user