2023-03-30 19:24:18 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2023-05-11 13:30:18 +00:00
|
|
|
import 'package:lightmeter/application.dart';
|
2023-09-28 21:29:33 +00:00
|
|
|
import 'package:lightmeter/application_wrapper.dart';
|
2023-01-25 10:08:11 +00:00
|
|
|
import 'package:lightmeter/environment.dart';
|
2023-05-11 13:30:18 +00:00
|
|
|
import 'package:lightmeter/firebase.dart';
|
2023-10-20 14:12:43 +00:00
|
|
|
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
|
2023-01-25 10:08:11 +00:00
|
|
|
|
2023-03-30 19:24:18 +00:00
|
|
|
Future<void> main() async {
|
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
2023-09-03 11:06:30 +00:00
|
|
|
await initializeFirebase(handleErrors: true);
|
2023-10-20 14:12:43 +00:00
|
|
|
runApp(
|
|
|
|
const IAPProductsProvider(
|
|
|
|
child: ApplicationWrapper(
|
|
|
|
Environment.prod(),
|
|
|
|
child: Application(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
2023-03-30 19:24:18 +00:00
|
|
|
}
|