Browse Source

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

weicu
lxm 2 years ago
parent
commit
1ef8be5060
  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) {
return GetMaterialApp(
title: 'DeepSound',
defaultTransition: Transition.noTransition, // 设置默认过渡动画为无动画
theme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme,
themeMode: themeMode, // 使用提前获取的主题模式

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

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

Loading…
Cancel
Save