feat: Integrate dotenv for environment variable management and update .gitignore
This commit is contained in:
@@ -2,9 +2,9 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:travel_mate/services/error_service.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'blocs/auth/auth_bloc.dart';
|
||||
import 'blocs/auth/auth_event.dart';
|
||||
import 'blocs/auth/auth_state.dart';
|
||||
import 'blocs/theme/theme_bloc.dart';
|
||||
import 'blocs/theme/theme_event.dart';
|
||||
import 'blocs/theme/theme_state.dart';
|
||||
@@ -22,6 +22,7 @@ import 'pages/resetpswd.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await dotenv.load(fileName: ".env");
|
||||
await Firebase.initializeApp();
|
||||
|
||||
runApp(const MyApp());
|
||||
|
||||
Reference in New Issue
Block a user