refactor(apps): 主题系统迁移至 ColorScheme + 扩展架构并支持 Dark Mode
This commit is contained in:
+3
-8
@@ -1,17 +1,12 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'core/constants/app_constants.dart';
|
||||
import 'core/config/env.dart';
|
||||
import 'app/di/injection.dart';
|
||||
import 'features/auth/presentation/bloc/auth_bloc.dart';
|
||||
import 'features/auth/presentation/bloc/auth_event.dart';
|
||||
import 'app/app.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await configureDependencies();
|
||||
await AppConstants.init();
|
||||
await Env.init();
|
||||
|
||||
final authBloc = sl<AuthBloc>();
|
||||
authBloc.add(AuthStarted());
|
||||
|
||||
runApp(LinksyApp(authBloc: authBloc));
|
||||
runApp(const LinksyApp());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user