Commit 111ffe17 by tanghuan

修整

1 parent 60f5ffe5
...@@ -33,15 +33,15 @@ class App extends StatelessWidget { ...@@ -33,15 +33,15 @@ class App extends StatelessWidget {
routerConfig: router, routerConfig: router,
title: '班小二', title: '班小二',
theme: ThemeData(primarySwatch: Colors.blue), theme: ThemeData(primarySwatch: Colors.blue),
// === 为 iOS 添加本地化配置 === // // === 为 iOS 添加本地化配置 ===
localizationsDelegates: const [ // localizationsDelegates: const [
GlobalMaterialLocalizations.delegate, // 为Material组件提供本地化 // GlobalMaterialLocalizations.delegate, // 为Material组件提供本地化
GlobalCupertinoLocalizations.delegate, // 为Cupertino组件提供本地化 // GlobalCupertinoLocalizations.delegate, // 为Cupertino组件提供本地化
GlobalWidgetsLocalizations.delegate, // 定义文本方向等 // GlobalWidgetsLocalizations.delegate, // 定义文本方向等
], // ],
supportedLocales: const [ // supportedLocales: const [
Locale('zh', 'CN'), // 中文(中国) // Locale('zh', 'CN'), // 中文(中国)
Locale('en', 'US'), // 英语(美国) // Locale('en', 'US'), // 英语(美国)
], // ],
); );
} }
...@@ -68,9 +68,6 @@ class WechatAuthCubit extends Cubit<WechatAuthState> { ...@@ -68,9 +68,6 @@ class WechatAuthCubit extends Cubit<WechatAuthState> {
_wechatAuthRepository = getIt<WechatAuthRepository>(); _wechatAuthRepository = getIt<WechatAuthRepository>();
} }
Future<void> _register() async {
await _fluwx.registerApi(appId: "wx8c32ea248f0c7765", universalLink: "https://dev.banxiaoer.net/path/to/wechat/");
}
void _responseListener(response) async { void _responseListener(response) async {
if (response is WeChatAuthResponse) { if (response is WeChatAuthResponse) {
dynamic resultData = await _wechatAuthRepository.codeToSk(response.code!); dynamic resultData = await _wechatAuthRepository.codeToSk(response.code!);
......
...@@ -39,8 +39,6 @@ dependencies: ...@@ -39,8 +39,6 @@ dependencies:
sdk: flutter sdk: flutter
flutter_localizations: # 确保存在这一行 flutter_localizations: # 确保存在这一行
sdk: flutter sdk: flutter
fluwx: ^5.7.2
go_router: ^16.2.1
archive: ^4.0.7 archive: ^4.0.7
connectivity_plus: ^7.0.0 connectivity_plus: ^7.0.0
device_info_plus: ^11.5.0 device_info_plus: ^11.5.0
...@@ -70,13 +68,7 @@ dependencies: ...@@ -70,13 +68,7 @@ dependencies:
path_provider: ^2.1.5 path_provider: ^2.1.5
permission_handler: ^12.0.1 permission_handler: ^12.0.1
shared_preferences: ^2.5.3 shared_preferences: ^2.5.3
flutter_sound: ^9.28.0 # video_thumbnail: ^0.5.6
device_info_plus: ^12.1.0
gallery_saver_plus: ^3.2.9
flutter_image_compress: ^2.4.0
image_size_getter: ^2.4.1
video_thumbnail: ^0.5.6
mime: ^2.0.0
url_launcher: ^6.3.2 url_launcher: ^6.3.2
uuid: ^4.5.1 uuid: ^4.5.1
vibration: ^3.1.3 vibration: ^3.1.3
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!