2026-02-25 10:57:43 +08:00
|
|
|
import 'package:flutter/material.dart';
|
2026-03-16 16:09:07 +08:00
|
|
|
import 'core/constants/app_constants.dart';
|
2026-03-27 14:05:03 +08:00
|
|
|
import 'app/di/injection.dart';
|
2026-02-25 15:25:31 +08:00
|
|
|
import 'features/auth/presentation/bloc/auth_bloc.dart';
|
|
|
|
|
import 'features/auth/presentation/bloc/auth_event.dart';
|
2026-03-27 14:05:03 +08:00
|
|
|
import 'app/app.dart';
|
2026-02-25 15:25:31 +08:00
|
|
|
|
|
|
|
|
void main() async {
|
|
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
|
await configureDependencies();
|
2026-03-16 16:09:07 +08:00
|
|
|
await AppConstants.init();
|
2026-03-20 18:47:50 +08:00
|
|
|
|
2026-02-25 15:25:31 +08:00
|
|
|
final authBloc = sl<AuthBloc>();
|
2026-03-12 16:41:45 +08:00
|
|
|
authBloc.add(AuthStarted());
|
2026-02-25 15:25:31 +08:00
|
|
|
|
2026-03-27 14:05:03 +08:00
|
|
|
runApp(LinksyApp(authBloc: authBloc));
|
2026-02-25 10:57:43 +08:00
|
|
|
}
|