This commit is contained in:
efrilm 2025-09-18 21:36:32 +07:00
parent c1be16845e
commit 937b98e45b

View File

@ -87,6 +87,12 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// await LamanPrint.init();
// final dir = await getApplicationDocumentsDirectory();
// Hive.init(dir.path);
// Hive.registerAdapter(TableDataAdapter());
runZonedGuarded(() async {
await Firebase.initializeApp();
await FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);
@ -96,12 +102,6 @@ void main() async {
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]);
// await LamanPrint.init();
// final dir = await getApplicationDocumentsDirectory();
// Hive.init(dir.path);
// Hive.registerAdapter(TableDataAdapter());
runZonedGuarded(() async {
runApp(ProviderScope(child: MyApp()));
}, (error, stack) {
FirebaseCrashlytics.instance.recordError(error, stack, fatal: true);