mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-10 15:17:21 +00:00
add project id to env file and hide about
This commit is contained in:
3
.env.dev
3
.env.dev
@ -1,2 +1,3 @@
|
||||
ENV_NAME=development
|
||||
BASE_URL=https://syncrow-dev.azurewebsites.net
|
||||
BASE_URL=https://syncrow-dev.azurewebsites.net
|
||||
projectId=0e62577c-06fa-41b9-8a92-99a21fbaf51c
|
||||
|
@ -1,2 +1,3 @@
|
||||
ENV_NAME=production
|
||||
BASE_URL=https://syncrow-staging.azurewebsites.net
|
||||
BASE_URL=https://syncrow-staging.azurewebsites.net
|
||||
projectId=bcda711e-9fc2-4168-a05e-171b4026d1ff
|
||||
|
@ -1,2 +1,3 @@
|
||||
ENV_NAME=staging
|
||||
BASE_URL=https://syncrow-staging.azurewebsites.net
|
||||
BASE_URL=https://syncrow-staging.azurewebsites.net
|
||||
projectId=bcda711e-9fc2-4168-a05e-171b4026d1ff
|
||||
|
@ -154,11 +154,11 @@ class MenuCubit extends Cubit<MenuState> {
|
||||
'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<MenuState> {
|
||||
Future<void> fetchMenuSections() async {
|
||||
emit(MenuLoading());
|
||||
try {
|
||||
emit(MenuItemsLoaded(menuSections));
|
||||
emit(MenuItemsLoaded(menuSections));
|
||||
} catch (e) {
|
||||
emit(MenuError(e.toString()));
|
||||
}
|
||||
|
@ -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'] ?? '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user