mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +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:
@ -204,16 +204,16 @@ enum TempModes { hot, cold, wind }
|
||||
enum FanSpeeds { auto, low, middle, high }
|
||||
|
||||
final Map<FanSpeeds, String> fanSpeedsIconMap = {
|
||||
FanSpeeds.auto: Assets.iconsFan0,
|
||||
FanSpeeds.low: Assets.iconsFan1,
|
||||
FanSpeeds.middle: Assets.iconsFan2,
|
||||
FanSpeeds.high: Assets.iconsFan3,
|
||||
FanSpeeds.auto: Assets.assetsIconsFan0,
|
||||
FanSpeeds.low: Assets.assetsIconsFan1,
|
||||
FanSpeeds.middle: Assets.assetsIconsFan2,
|
||||
FanSpeeds.high: Assets.assetsIconsFan3,
|
||||
};
|
||||
|
||||
final Map<TempModes, String> tempModesIconMap = {
|
||||
TempModes.hot: Assets.iconsSunnyMode,
|
||||
TempModes.cold: Assets.iconsColdMode,
|
||||
TempModes.wind: Assets.iconsWindyMode,
|
||||
TempModes.hot: Assets.assetsIconsSunnyMode,
|
||||
TempModes.cold: Assets.assetsIconsColdMode,
|
||||
TempModes.wind: Assets.assetsIconsWindyMode,
|
||||
};
|
||||
|
||||
final Map<String, FanSpeeds> fanSpeedsMap = {
|
||||
@ -275,17 +275,17 @@ List<Map<String, Object>> menuSections = [
|
||||
'buttons': [
|
||||
{
|
||||
'title': 'Create a Home',
|
||||
'Icon': Assets.homeManagementIconsCreateHome,
|
||||
'Icon': Assets.assetsIconsMenuIconsHomeManagementIconsCreateHome,
|
||||
'page': const CreateHomeView()
|
||||
},
|
||||
{
|
||||
'title': 'Join a Home',
|
||||
'Icon': Assets.homeManagementIconsJoinAHome,
|
||||
'Icon': Assets.assetsIconsMenuIconsHomeManagementIconsJoinAHome,
|
||||
'page': const JoinHomeView()
|
||||
},
|
||||
{
|
||||
'title': 'Manage Your Home',
|
||||
'Icon': Assets.homeManagementIconsManageYourHome,
|
||||
'Icon': Assets.assetsIconsMenuIconsHomeManagementIconsManageYourHome,
|
||||
'page': const ManageHomeView()
|
||||
},
|
||||
],
|
||||
@ -297,32 +297,32 @@ List<Map<String, Object>> menuSections = [
|
||||
'buttons': [
|
||||
{
|
||||
'title': 'Voice Assistant',
|
||||
'Icon': Assets.generalSettingsIconsVoiceAssistant,
|
||||
'Icon': Assets.assetsIconsMenuIconsGeneralSettingsIconsVoiceAssistant,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'Temperature unit',
|
||||
'Icon': Assets.generalSettingsIconsTemperatureUnit,
|
||||
'Icon': Assets.assetsIconsMenuIconsGeneralSettingsIconsTemperatureUnit,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'Touch tone on panel',
|
||||
'Icon': Assets.generalSettingsIconsTouchTone,
|
||||
'Icon': Assets.assetsIconsMenuIconsGeneralSettingsIconsTouchTone,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'Language',
|
||||
'Icon': Assets.generalSettingsIconsLanguage,
|
||||
'Icon': Assets.assetsIconsMenuIconsGeneralSettingsIconsLanguage,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'Network Diagnosis',
|
||||
'Icon': Assets.generalSettingsIconsNetworkDiagnosis,
|
||||
'Icon': Assets.assetsIconsMenuIconsGeneralSettingsIconsNetworkDiagnosis,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'Clear Cache',
|
||||
'Icon': Assets.generalSettingsIconsClearCach,
|
||||
'Icon': Assets.assetsIconsMenuIconsGeneralSettingsIconsClearCach,
|
||||
'page': null
|
||||
},
|
||||
],
|
||||
@ -334,18 +334,22 @@ List<Map<String, Object>> menuSections = [
|
||||
'buttons': [
|
||||
{
|
||||
'title': 'Alerts',
|
||||
'Icon': Assets.messagesCenterIconsAlerts,
|
||||
'Icon': Assets.assetsIconsMenuIconsMessagesCenterIconsAlerts,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'Messages',
|
||||
'Icon': Assets.messagesCenterIconsMessages,
|
||||
'Icon': Assets.assetsIconsMenuIconsMessagesCenterIconsMessages,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'FAQs',
|
||||
'Icon': Assets.assetsIconsMenuIconsMessagesCenterIconsFAQs,
|
||||
'page': null
|
||||
},
|
||||
{'title': 'FAQs', 'Icon': Assets.messagesCenterIconsFAQs, 'page': null},
|
||||
{
|
||||
'title': 'Help & Feedback',
|
||||
'Icon': Assets.messagesCenterIconsHelpAndFeedback,
|
||||
'Icon': Assets.assetsIconsMenuIconsMessagesCenterIconsHelpAndFeedback,
|
||||
'page': null
|
||||
},
|
||||
],
|
||||
@ -357,12 +361,12 @@ List<Map<String, Object>> menuSections = [
|
||||
'buttons': [
|
||||
{
|
||||
'title': 'Security',
|
||||
'Icon': Assets.securityAndPrivacyIconsSecurty,
|
||||
'Icon': Assets.assetsIconsMenuIconsSecurityAndPrivacyIconsSecurty,
|
||||
'page': const SecurtyView()
|
||||
},
|
||||
{
|
||||
'title': 'Privacy',
|
||||
'Icon': Assets.securityAndPrivacyIconsPrivacy,
|
||||
'Icon': Assets.assetsIconsMenuIconsSecurityAndPrivacyIconsPrivacy,
|
||||
'page': const PrivacyView()
|
||||
},
|
||||
],
|
||||
@ -372,15 +376,19 @@ List<Map<String, Object>> menuSections = [
|
||||
'title': 'Legal Information',
|
||||
'color': const Color(0xFF001B72),
|
||||
'buttons': [
|
||||
{'title': 'About', 'Icon': Assets.leagalInfoIconsAbout, 'page': null},
|
||||
{
|
||||
'title': 'About',
|
||||
'Icon': Assets.assetsIconsMenuIconsLeagalInfoIconsAbout,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'Privacy Policy',
|
||||
'Icon': Assets.leagalInfoIconsPrivacyPolicy,
|
||||
'Icon': Assets.assetsIconsMenuIconsLeagalInfoIconsPrivacyPolicy,
|
||||
'page': null
|
||||
},
|
||||
{
|
||||
'title': 'User Agreement',
|
||||
'Icon': Assets.leagalInfoIconsUserAgreement,
|
||||
'Icon': Assets.assetsIconsMenuIconsLeagalInfoIconsUserAgreement,
|
||||
'page': null
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user