fix .env on dev
This commit is contained in:
@@ -6,7 +6,12 @@ import 'src/screens/start_screen.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
await dotenv.load(fileName: ".env");
|
try {
|
||||||
|
await dotenv.load(fileName: ".env");
|
||||||
|
} catch (e) {
|
||||||
|
// It's okay if the .env file is not found.
|
||||||
|
// This is expected in release builds.
|
||||||
|
}
|
||||||
|
|
||||||
runApp(
|
runApp(
|
||||||
Provider<DeckRepository>(
|
Provider<DeckRepository>(
|
||||||
@@ -28,4 +33,4 @@ class WkApp extends StatelessWidget {
|
|||||||
home: const StartScreen(),
|
home: const StartScreen(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user