diff --git a/.env.dev b/.env.dev index e77609d..406ddc2 100644 --- a/.env.dev +++ b/.env.dev @@ -1,2 +1,3 @@ ENV_NAME=development -BASE_URL=https://syncrow-dev.azurewebsites.net \ No newline at end of file +BASE_URL=https://syncrow-dev.azurewebsites.net +projectId=0e62577c-06fa-41b9-8a92-99a21fbaf51c diff --git a/.env.prod b/.env.prod index 4e9dcb8..3b0ae1f 100644 --- a/.env.prod +++ b/.env.prod @@ -1,2 +1,3 @@ ENV_NAME=production -BASE_URL=https://syncrow-staging.azurewebsites.net \ No newline at end of file +BASE_URL=https://syncrow-staging.azurewebsites.net +projectId=bcda711e-9fc2-4168-a05e-171b4026d1ff diff --git a/.env.staging b/.env.staging index 9565b42..db01ceb 100644 --- a/.env.staging +++ b/.env.staging @@ -1,2 +1,3 @@ ENV_NAME=staging -BASE_URL=https://syncrow-staging.azurewebsites.net \ No newline at end of file +BASE_URL=https://syncrow-staging.azurewebsites.net +projectId=bcda711e-9fc2-4168-a05e-171b4026d1ff diff --git a/lib/features/menu/bloc/menu_cubit.dart b/lib/features/menu/bloc/menu_cubit.dart index b868624..624112f 100644 --- a/lib/features/menu/bloc/menu_cubit.dart +++ b/lib/features/menu/bloc/menu_cubit.dart @@ -154,11 +154,11 @@ class MenuCubit extends Cubit { 'title': 'Legal Information', 'color': const Color(0xFF001B72), 'buttons': [ - { - 'title': 'About', - 'Icon': Assets.assetsIconsMenuIconsLeagalInfoIconsAbout, - 'page': null - }, + // { + // 'title': 'About', + // 'Icon': Assets.assetsIconsMenuIconsLeagalInfoIconsAbout, + // 'page': null + // }, { 'title': 'Privacy Policy', 'Icon': Assets.assetsIconsMenuIconsLeagalInfoIconsPrivacyPolicy, @@ -176,7 +176,7 @@ class MenuCubit extends Cubit { Future fetchMenuSections() async { emit(MenuLoading()); try { - emit(MenuItemsLoaded(menuSections)); + emit(MenuItemsLoaded(menuSections)); } catch (e) { emit(MenuError(e.toString())); } diff --git a/lib/utils/constants/temp_const.dart b/lib/utils/constants/temp_const.dart index 237fc22..9ed0b6c 100644 --- a/lib/utils/constants/temp_const.dart +++ b/lib/utils/constants/temp_const.dart @@ -1,4 +1,5 @@ +import 'package:flutter_dotenv/flutter_dotenv.dart'; + class TempConst { - static const projectIdDev = '0e62577c-06fa-41b9-8a92-99a21fbaf51c'; - static const projectIdStag = 'bcda711e-9fc2-4168-a05e-171b4026d1ff'; + static String projectIdDev = dotenv.env['projectId'] ?? ''; }