Browse Source

移除默认过渡动画和权限检查逻辑

newdev_shunjiawei
lxm 2 years ago
parent
commit
2fb19e7043
  1. 1
      lib/main.dart
  2. 16
      lib/modules/meeting/controllers/meeting_record_controller.dart

1
lib/main.dart

@ -67,7 +67,6 @@ class MainApp extends StatelessWidget {
builder: (_, child) { builder: (_, child) {
return GetMaterialApp( return GetMaterialApp(
title: 'DeepSound', title: 'DeepSound',
defaultTransition: Transition.noTransition, // 设置默认过渡动画为无动画
theme: AppTheme.lightTheme, theme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme, darkTheme: AppTheme.darkTheme,
themeMode: themeMode, // 使用提前获取的主题模式 themeMode: themeMode, // 使用提前获取的主题模式

16
lib/modules/meeting/controllers/meeting_record_controller.dart

@ -158,19 +158,9 @@ class MeetingRecordController extends GetxController
// 完成 // 完成
void complete() async { void complete() async {
if (await Permission.storage.request().isGranted) { EasyLoading.show();
EasyLoading.show(); await _pause();
await _pause(); _aiSummary();
_aiSummary();
} else {
Get.snackbar(
'error'.tr, // 错误
'请开启文件存储权限',
snackPosition: SnackPosition.TOP,
backgroundColor: Colors.red.withOpacity(0.1),
colorText: Colors.red,
);
}
} }
void _aiSummary() async { void _aiSummary() async {

Loading…
Cancel
Save