17 changed files with 459 additions and 1049 deletions
@ -0,0 +1,142 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
import 'package:get/get.dart'; |
|||
|
|||
import '../../controllers/meeting_controller.dart'; |
|||
|
|||
class EditTitleBottomSheet extends GetView<MeetingController> { |
|||
final int id; |
|||
|
|||
const EditTitleBottomSheet(this.id, {super.key}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Padding( |
|||
padding: EdgeInsets.symmetric(horizontal: 12.w), |
|||
child: Column( |
|||
mainAxisSize: MainAxisSize.min, |
|||
children: [ |
|||
Container( |
|||
padding: EdgeInsets.symmetric(vertical: 10.w), |
|||
child: Row( |
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|||
children: [ |
|||
Text( |
|||
'editMeetingTitle'.tr, // 编辑会议标题 |
|||
style: TextStyle( |
|||
fontSize: 16.sp, |
|||
color: Colors.black87, |
|||
fontWeight: FontWeight.bold, |
|||
), |
|||
), |
|||
GestureDetector( |
|||
onTap: () => Get.back(), |
|||
child: Container( |
|||
width: 26.w, |
|||
height: 26.w, |
|||
decoration: BoxDecoration( |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.circular(26.r), |
|||
), |
|||
child: Icon( |
|||
Icons.close, |
|||
size: 18.w, |
|||
color: Colors.grey[400], |
|||
), |
|||
), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
Divider( |
|||
height: 1, |
|||
color: Colors.grey[300], |
|||
), |
|||
Container( |
|||
height: 48.w, |
|||
margin: EdgeInsets.symmetric(vertical: 20.w), |
|||
alignment: Alignment.center, |
|||
decoration: BoxDecoration( |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.circular(12.w), |
|||
boxShadow: [ |
|||
BoxShadow( |
|||
color: Colors.black.withOpacity(0.05), |
|||
blurRadius: 10, |
|||
offset: const Offset(0, 2), |
|||
), |
|||
], |
|||
), |
|||
child: TextField( |
|||
controller: controller.titleController, |
|||
style: TextStyle( |
|||
color: Colors.black87, |
|||
fontSize: 16.sp, |
|||
), |
|||
decoration: InputDecoration( |
|||
hintText: 'maxCharacters'.tr, |
|||
hintStyle: TextStyle( |
|||
color: Colors.black54, |
|||
fontSize: 16.sp, |
|||
), |
|||
fillColor: Colors.transparent, |
|||
border: InputBorder.none, |
|||
contentPadding: EdgeInsets.symmetric(horizontal: 10.w), |
|||
), |
|||
), |
|||
), |
|||
Padding( |
|||
padding: EdgeInsets.only(bottom: 20.w), |
|||
child: Row( |
|||
children: [ |
|||
Expanded( |
|||
child: GestureDetector( |
|||
onTap: () => Get.back(), |
|||
child: Container( |
|||
height: 48.w, |
|||
alignment: Alignment.center, |
|||
decoration: BoxDecoration( |
|||
color: Colors.grey[300], |
|||
borderRadius: BorderRadius.circular(12.r), |
|||
), |
|||
child: Text( |
|||
'cancel'.tr, // 取消 |
|||
style: TextStyle( |
|||
fontSize: 16.sp, |
|||
color: Colors.black, |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
10.horizontalSpace, |
|||
Expanded( |
|||
child: GestureDetector( |
|||
onTap: () { |
|||
controller.editMeetingTitle(id); |
|||
}, |
|||
child: Container( |
|||
height: 48.w, |
|||
alignment: Alignment.center, |
|||
decoration: BoxDecoration( |
|||
color: Colors.black, |
|||
borderRadius: BorderRadius.circular(12.r), |
|||
), |
|||
child: Text( |
|||
'confirm'.tr, // 确认 |
|||
style: TextStyle( |
|||
fontSize: 16.sp, |
|||
color: Colors.white, |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
], |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,74 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class FiltrateDrawer extends StatelessWidget { |
|||
const FiltrateDrawer({super.key}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return SafeArea( |
|||
child: Column( |
|||
crossAxisAlignment: CrossAxisAlignment.start, |
|||
children: [ |
|||
Padding( |
|||
padding: EdgeInsets.all(20.w), |
|||
child: TextField( |
|||
decoration: InputDecoration( |
|||
hintText: '在所有文件中搜索', |
|||
prefixIcon: Icon(Icons.search), |
|||
border: OutlineInputBorder( |
|||
borderRadius: BorderRadius.circular(12.w), |
|||
borderSide: BorderSide.none, |
|||
), |
|||
filled: true, |
|||
fillColor: Colors.grey[100], |
|||
contentPadding: EdgeInsets.zero, |
|||
), |
|||
), |
|||
), |
|||
ListTile( |
|||
leading: Icon(Icons.folder, color: Colors.red), |
|||
title: |
|||
Text('全部文件(4)', style: TextStyle(fontWeight: FontWeight.bold)), |
|||
onTap: () {}, |
|||
), |
|||
ListTile( |
|||
leading: Icon(Icons.category, color: Colors.blue), |
|||
title: Text('未分类(4)'), |
|||
onTap: () {}, |
|||
), |
|||
ListTile( |
|||
leading: Icon(Icons.delete, color: Colors.teal), |
|||
title: Text('回收站'), |
|||
onTap: () {}, |
|||
), |
|||
Divider(), |
|||
Padding( |
|||
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 8.w), |
|||
child: Text('文件夹', style: TextStyle(color: Colors.grey)), |
|||
), |
|||
...['NOTE', 'CALL', 'NotePin', 'Import', 'Desktop'] |
|||
.map((name) => ListTile( |
|||
title: Text(name), |
|||
onTap: () {}, |
|||
)), |
|||
Divider(), |
|||
Padding( |
|||
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 8.w), |
|||
child: Text('排序方式', style: TextStyle(color: Colors.grey)), |
|||
), |
|||
ListTile( |
|||
title: Text('创建时间'), |
|||
trailing: Icon(Icons.arrow_upward), |
|||
onTap: () {}, |
|||
), |
|||
ListTile( |
|||
title: Text('修改时间'), |
|||
trailing: Icon(Icons.arrow_upward), |
|||
onTap: () {}, |
|||
), |
|||
], |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -1,12 +1,12 @@ |
|||
import '../../../data/services/db/sqflite_api.dart'; |
|||
import '../../../../data/services/db/sqflite_api.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
import 'package:get/get.dart'; |
|||
import 'package:get_storage/get_storage.dart'; |
|||
|
|||
import '../controllers/meeting_details_controller.dart'; |
|||
import '../../controllers/meeting_details_controller.dart'; |
|||
import 'record_language_bottom_sheet.dart'; |
|||
import 'template_view.dart'; |
|||
import '../template_view.dart'; |
|||
|
|||
class GenerateBottomSheet extends StatefulWidget { |
|||
final bool isSummarizeAgain; |
|||
@ -0,0 +1,149 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
import 'package:get/get.dart'; |
|||
|
|||
import '../../../../routes/app_routes.dart'; |
|||
import '../../controllers/meeting_controller.dart'; |
|||
|
|||
class ImportAudioBottomSheet extends GetView<MeetingController> { |
|||
const ImportAudioBottomSheet({super.key}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Padding( |
|||
padding: EdgeInsets.symmetric(horizontal: 12.w), |
|||
child: Column( |
|||
mainAxisSize: MainAxisSize.min, |
|||
children: [ |
|||
Container( |
|||
padding: EdgeInsets.symmetric(vertical: 10.w), |
|||
child: Row( |
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|||
children: [ |
|||
Text( |
|||
'添加音频', |
|||
style: TextStyle( |
|||
fontSize: 16.sp, |
|||
color: Colors.black87, |
|||
fontWeight: FontWeight.bold, |
|||
), |
|||
), |
|||
GestureDetector( |
|||
onTap: () => Get.back(), |
|||
child: Container( |
|||
width: 26.w, |
|||
height: 26.w, |
|||
decoration: BoxDecoration( |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.circular(26.r), |
|||
), |
|||
child: Icon( |
|||
Icons.close, |
|||
size: 18.w, |
|||
color: Colors.grey[400], |
|||
), |
|||
), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
Divider( |
|||
height: 1, |
|||
color: Colors.grey[300], |
|||
), |
|||
SizedBox(height: 16.w), |
|||
_importAudioItem(Icons.mic, '现场录音', onTap: () async { |
|||
Get.back(); |
|||
await Get.toNamed(Routes.meetingRecord, arguments: { |
|||
'audioTypes': 0, |
|||
}); |
|||
controller.addMeetingAudio(); |
|||
}), |
|||
_importAudioItem( |
|||
Icons.videocam, |
|||
'音、视频录音', |
|||
onTap: controller.bleManager.isConnected |
|||
? () async { |
|||
Get.back(); |
|||
await Get.toNamed(Routes.meetingRecord, arguments: { |
|||
'audioTypes': 1, |
|||
}); |
|||
controller.addMeetingAudio(); |
|||
} |
|||
: null, |
|||
), |
|||
_importAudioItem( |
|||
Icons.phone, |
|||
'通话录音', |
|||
onTap: controller.bleManager.isConnected |
|||
? () async { |
|||
Get.back(); |
|||
await Get.toNamed(Routes.meetingRecord, arguments: { |
|||
'audioTypes': 2, |
|||
}); |
|||
controller.addMeetingAudio(); |
|||
} |
|||
: null, |
|||
), |
|||
_importAudioItem(Icons.library_music, '导入本地音频', onTap: () { |
|||
Get.back(); |
|||
controller.addAudio(); |
|||
}), |
|||
Padding( |
|||
padding: EdgeInsets.symmetric(vertical: 16.w), |
|||
child: Text( |
|||
'支持导入单文件时长不超过5小时的音频', |
|||
style: TextStyle( |
|||
fontSize: 14.sp, |
|||
color: Colors.grey[600], |
|||
), |
|||
), |
|||
), |
|||
SizedBox(height: 4.w), |
|||
], |
|||
), |
|||
); |
|||
} |
|||
|
|||
Widget _importAudioItem( |
|||
IconData icon, |
|||
String title, { |
|||
VoidCallback? onTap, |
|||
}) { |
|||
return GestureDetector( |
|||
onTap: onTap, |
|||
child: Container( |
|||
height: 48.w, |
|||
padding: EdgeInsets.symmetric(horizontal: 12.w), |
|||
margin: EdgeInsets.symmetric(vertical: 4.w), |
|||
decoration: BoxDecoration( |
|||
color: Colors.grey[50]!.withOpacity(onTap != null ? 1 : 0.5), |
|||
borderRadius: BorderRadius.circular(12.w), |
|||
), |
|||
child: Row( |
|||
children: [ |
|||
Opacity( |
|||
opacity: onTap != null ? 1.0 : 0.5, |
|||
child: Icon(icon, size: 20.w), |
|||
), |
|||
10.horizontalSpace, |
|||
Expanded( |
|||
child: Text( |
|||
title, |
|||
style: TextStyle( |
|||
fontSize: 14.sp, |
|||
color: Colors.black87.withOpacity(onTap != null ? 1 : 0.5), |
|||
), |
|||
), |
|||
), |
|||
Icon( |
|||
Icons.arrow_forward_ios, |
|||
size: 16.w, |
|||
color: Colors.grey.withOpacity(onTap != null ? 1 : 0.5), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
Loading…
Reference in new issue