diff --git a/frontend/mgramseva/lib/main.dart b/frontend/mgramseva/lib/main.dart index 2172616bb..eb56c9265 100644 --- a/frontend/mgramseva/lib/main.dart +++ b/frontend/mgramseva/lib/main.dart @@ -73,7 +73,11 @@ void main() { }; WidgetsFlutterBinding.ensureInitialized(); - await dotenv.load(); + if(kIsWeb){ + await dotenv.load(); + }else{ + await dotenv.load(fileName: 'assets/.env'); + } if(kIsWeb){ await Firebase.initializeApp(options: FirebaseConfigurations.firebaseOptions); }else{ diff --git a/frontend/mgramseva/pubspec.yaml b/frontend/mgramseva/pubspec.yaml index fed019f24..78762ed08 100644 --- a/frontend/mgramseva/pubspec.yaml +++ b/frontend/mgramseva/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.2.17+33 +version: 1.2.18+34 environment: sdk: ">=2.12.0 <4.0.0" @@ -112,7 +112,7 @@ flutter: - assets/png/ - assets/icons/ - assets/svg/ - - assets/ + - assets/.env # To add assets to your application, add an assets section, like this: # - images/a_dot_ham.jpeg