m3_lightmeter/lib/launch_app.dart

13 lines
402 B
Dart
Raw Normal View History

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