location has been enabled in addition to sending the domain
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_native_splash/flutter_native_splash.dart';
|
||||
|
||||
import 'core/di/injection_container.dart';
|
||||
import 'presentation/blocs/theme/theme_cubit.dart';
|
||||
import 'presentation/screens/splash_screen.dart';
|
||||
|
||||
void main() async {
|
||||
@@ -12,7 +14,12 @@ void main() async {
|
||||
// Initialize dependency injection
|
||||
await initializeDependencies();
|
||||
|
||||
runApp(const CodaApp());
|
||||
runApp(
|
||||
BlocProvider(
|
||||
create: (_) => sl<ThemeCubit>()..loadTheme(),
|
||||
child: const CodaApp(),
|
||||
),
|
||||
);
|
||||
} catch (e) {
|
||||
debugPrint('CRITICAL INITIALIZATION ERROR: $e');
|
||||
// If initialization fails, show a simple error screen instead of a broken app
|
||||
|
||||
Reference in New Issue
Block a user