Commit 6fb826a31fb349cd49b9c6460ea3a8b435627524
1 parent
1a43bf7c
feat:更新适配文件
Showing
2 changed files
with
4 additions
and
2 deletions
lib/app/app.dart
| ... | ... | @@ -11,13 +11,15 @@ class App extends StatelessWidget { |
| 11 | 11 | @override |
| 12 | 12 | Widget build(BuildContext context) { |
| 13 | 13 | return ScreenUtilInit( |
| 14 | + minTextAdapt: true, | |
| 15 | + splitScreenMode: true, | |
| 14 | 16 | designSize: const Size(667, 375), |
| 15 | 17 | builder: (_,__) => MultiBlocProvider( |
| 16 | 18 | providers: [ |
| 17 | 19 | BlocProvider<TabBloc>(create: (_)=> TabBloc()) |
| 18 | 20 | ], |
| 19 | 21 | child: MaterialApp( |
| 20 | - title: 'Wow English', | |
| 22 | + title: 'WowEnglish', | |
| 21 | 23 | theme: ThemeData( |
| 22 | 24 | colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), |
| 23 | 25 | useMaterial3: true, | ... | ... |
pubspec.yaml
| ... | ... | @@ -52,7 +52,7 @@ dependencies: |
| 52 | 52 | # 数据持久化 https://pub.dev/packages/shared_preferences |
| 53 | 53 | shared_preferences: ^2.1.1 |
| 54 | 54 | #字体/尺寸适配 https://pub.dev/packages/flutter_screenutil |
| 55 | - flutter_screenutil: ^5.8.1 | |
| 55 | + flutter_screenutil: ^5.8.4 | |
| 56 | 56 | # 显示网络等待插件 https://pub.flutter-io.cn/packages/flutter_easyloading |
| 57 | 57 | flutter_easyloading: ^3.0.5 |
| 58 | 58 | # 增强组件相等性判断 https://pub.flutter-io.cn/packages/equatable | ... | ... |