2a29701f
liangchengyou
feat:提交代码
|
1
2
3
4
|
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
f0d56772
liangchengyou
feat:更新尺寸适配
|
5
6
|
import 'package:responsive_framework/breakpoint.dart';
import 'package:responsive_framework/responsive_breakpoints.dart';
|
da82bd70
Key
feat: user_inform...
|
7
|
import 'package:wow_english/common/blocs/cachebloc/cache_bloc.dart';
|
4bf67b91
liangchengyou
feat:设置密码
|
8
|
import 'package:wow_english/common/widgets/hide_keyboard_widget.dart';
|
e8d9f472
liangchengyou
feat:提交代码
|
9
|
import 'package:wow_english/pages/tab/blocs/tab_bloc.dart';
|
c948a9ea
liangchengyou
feat:个人信息更改模块功能
|
10
|
import 'package:wow_english/pages/user/bloc/user_bloc.dart';
|
2a29701f
liangchengyou
feat:提交代码
|
11
|
import 'package:wow_english/route/route.dart';
|
2a29701f
liangchengyou
feat:提交代码
|
12
13
14
15
16
17
18
|
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
return ScreenUtilInit(
|
4847e3dc
liangchengyou
feat:添加设备方向处理
|
19
|
designSize: const Size(667, 375),
|
05f9b20a
Key
fixed: api调用方式,未完善
|
20
|
builder: (_, __) => MultiBlocProvider(
|
2a29701f
liangchengyou
feat:提交代码
|
21
|
providers: [
|
05f9b20a
Key
fixed: api调用方式,未完善
|
22
|
BlocProvider<TabBloc>(create: (_) => TabBloc()),
|
da82bd70
Key
feat: user_inform...
|
23
|
BlocProvider<CacheBloc>(create: (_) => CacheBloc()),
|
c948a9ea
liangchengyou
feat:个人信息更改模块功能
|
24
|
BlocProvider<UserBloc>(create: (_) => UserBloc()),
|
2a29701f
liangchengyou
feat:提交代码
|
25
|
],
|
4bf67b91
liangchengyou
feat:设置密码
|
26
27
28
29
|
child: HideKeyboard(
child: MaterialApp(
title: 'WowEnglish',
theme: ThemeData(
|
1d5315dd
liangchengyou
feat:添加字体,调整文件结构
|
30
|
fontFamily: 'HannotateSC',
|
91fe517a
liangchengyou
feat:看视频功能开发
|
31
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.white),
|
4bf67b91
liangchengyou
feat:设置密码
|
32
33
|
useMaterial3: true,
),
|
f0d56772
liangchengyou
feat:更新尺寸适配
|
34
|
builder: EasyLoading.init(
|
05f9b20a
Key
fixed: api调用方式,未完善
|
35
36
37
38
39
40
41
|
builder: (context, child) => ResponsiveBreakpoints(breakpoints: const [
Breakpoint(start: 0, end: 450, name: MOBILE),
Breakpoint(start: 0, end: 450, name: PHONE),
Breakpoint(start: 451, end: 800, name: TABLET),
Breakpoint(start: 801, end: 1920, name: DESKTOP),
Breakpoint(start: 1921, end: double.infinity, name: '4K'),
], child: child!)),
|
4bf67b91
liangchengyou
feat:设置密码
|
42
43
44
|
initialRoute: AppRouteName.splash,
navigatorKey: AppRouter.navigatorKey,
onGenerateRoute: AppRouter.generateRoute,
|
2a29701f
liangchengyou
feat:提交代码
|
45
|
),
|
2a29701f
liangchengyou
feat:提交代码
|
46
47
48
49
|
)),
);
}
}
|