2023-03-26 09:02:21 +00:00
|
|
|
import 'package:firebase_core/firebase_core.dart';
|
2023-01-25 10:08:11 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2023-03-26 09:02:21 +00:00
|
|
|
import 'package:lightmeter/firebase_options.dart';
|
2023-01-25 10:08:11 +00:00
|
|
|
|
|
|
|
import 'application.dart';
|
|
|
|
import 'environment.dart';
|
|
|
|
|
2023-03-26 09:02:21 +00:00
|
|
|
Future<void> launchApp(Environment env) async {
|
2023-01-25 10:08:11 +00:00
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
2023-03-26 09:02:21 +00:00
|
|
|
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
|
2023-01-25 10:08:11 +00:00
|
|
|
runApp(Application(env));
|
|
|
|
}
|