|
|
@ -88,6 +88,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
|
Widget build(BuildContext context) { |
|
|
Widget build(BuildContext context) { |
|
|
|
|
|
final isDarkMode = Theme.of(context).brightness == Brightness.dark; |
|
|
return SafeArea( |
|
|
return SafeArea( |
|
|
top: false, |
|
|
top: false, |
|
|
child: Column( |
|
|
child: Column( |
|
|
@ -111,7 +112,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
_controller.meetingData.value.title, |
|
|
_controller.meetingData.value.title, |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 16.sp, |
|
|
fontSize: 16.sp, |
|
|
color: Colors.black87, |
|
|
color: isDarkMode ? Colors.white : Colors.black87, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
Text( |
|
|
Text( |
|
|
@ -130,7 +131,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
width: 26.w, |
|
|
width: 26.w, |
|
|
height: 26.w, |
|
|
height: 26.w, |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
color: Colors.white, |
|
|
color: isDarkMode ? Colors.grey[700] : Colors.white, |
|
|
borderRadius: BorderRadius.circular(26.r), |
|
|
borderRadius: BorderRadius.circular(26.r), |
|
|
), |
|
|
), |
|
|
child: Icon( |
|
|
child: Icon( |
|
|
@ -148,7 +149,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
margin: EdgeInsets.only(bottom: 10.w), |
|
|
margin: EdgeInsets.only(bottom: 10.w), |
|
|
child: Divider( |
|
|
child: Divider( |
|
|
height: 1, |
|
|
height: 1, |
|
|
color: Colors.grey[300], |
|
|
color: isDarkMode ? Colors.grey[700] : Colors.grey[300], |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
Padding( |
|
|
Padding( |
|
|
@ -160,7 +161,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
'selectSummaryTemplate'.tr, // 对应中文:选择总结模版 |
|
|
'selectSummaryTemplate'.tr, // 对应中文:选择总结模版 |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 14.sp, |
|
|
fontSize: 14.sp, |
|
|
color: Colors.black87, |
|
|
color: isDarkMode ? Colors.white : Colors.black87, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -258,13 +259,14 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
Container( |
|
|
Container( |
|
|
margin: EdgeInsets.symmetric(horizontal: 12.w), |
|
|
margin: EdgeInsets.symmetric(horizontal: 12.w), |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
color: Colors.white, |
|
|
color: isDarkMode ? const Color(0xFF2D2D2D) : Colors.white, |
|
|
borderRadius: BorderRadius.circular(8.r), |
|
|
borderRadius: BorderRadius.circular(8.r), |
|
|
), |
|
|
), |
|
|
child: Column( |
|
|
child: Column( |
|
|
children: [ |
|
|
children: [ |
|
|
_row( |
|
|
_row( |
|
|
'speakerIdentification'.tr, // 对应中文:区分说话人 |
|
|
'speakerIdentification'.tr, // 对应中文:区分说话人 |
|
|
|
|
|
isDarkMode: isDarkMode, |
|
|
widget: Transform.scale( |
|
|
widget: Transform.scale( |
|
|
scale: 0.8, |
|
|
scale: 0.8, |
|
|
alignment: Alignment.centerRight, |
|
|
alignment: Alignment.centerRight, |
|
|
@ -281,11 +283,13 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
_row( |
|
|
_row( |
|
|
'recordingLanguage'.tr, // 对应中文:录音语言 |
|
|
'recordingLanguage'.tr, // 对应中文:录音语言 |
|
|
value: _formlanguageText, |
|
|
value: _formlanguageText, |
|
|
|
|
|
isDarkMode: isDarkMode, |
|
|
onTap: () { |
|
|
onTap: () { |
|
|
Get.bottomSheet( |
|
|
Get.bottomSheet( |
|
|
RecordLanguageBottomSheet(_formlanguage), |
|
|
RecordLanguageBottomSheet(_formlanguage), |
|
|
isScrollControlled: true, |
|
|
isScrollControlled: true, |
|
|
backgroundColor: Colors.grey[100], |
|
|
backgroundColor: |
|
|
|
|
|
isDarkMode ? Colors.grey[850] : Colors.grey[100], |
|
|
shape: RoundedRectangleBorder( |
|
|
shape: RoundedRectangleBorder( |
|
|
borderRadius: BorderRadius.vertical( |
|
|
borderRadius: BorderRadius.vertical( |
|
|
top: Radius.circular(12.r), |
|
|
top: Radius.circular(12.r), |
|
|
@ -305,11 +309,13 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
'targetLanguage'.tr, // 对应中文:目标语言 |
|
|
'targetLanguage'.tr, // 对应中文:目标语言 |
|
|
value: _tolanguageText, |
|
|
value: _tolanguageText, |
|
|
isBorder: false, |
|
|
isBorder: false, |
|
|
|
|
|
isDarkMode: isDarkMode, |
|
|
onTap: () { |
|
|
onTap: () { |
|
|
Get.bottomSheet( |
|
|
Get.bottomSheet( |
|
|
RecordLanguageBottomSheet(_tolanguage), |
|
|
RecordLanguageBottomSheet(_tolanguage), |
|
|
isScrollControlled: true, |
|
|
isScrollControlled: true, |
|
|
backgroundColor: Colors.grey[100], |
|
|
backgroundColor: |
|
|
|
|
|
isDarkMode ? Colors.grey[850] : Colors.grey[100], |
|
|
shape: RoundedRectangleBorder( |
|
|
shape: RoundedRectangleBorder( |
|
|
borderRadius: BorderRadius.vertical( |
|
|
borderRadius: BorderRadius.vertical( |
|
|
top: Radius.circular(12.r), |
|
|
top: Radius.circular(12.r), |
|
|
@ -362,14 +368,14 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
height: 48.w, |
|
|
height: 48.w, |
|
|
alignment: Alignment.center, |
|
|
alignment: Alignment.center, |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
color: Colors.black, |
|
|
color: isDarkMode ? Colors.white : Colors.black, |
|
|
borderRadius: BorderRadius.circular(12.r), |
|
|
borderRadius: BorderRadius.circular(12.r), |
|
|
), |
|
|
), |
|
|
child: Text( |
|
|
child: Text( |
|
|
'meetingGenerateNow'.tr, // 对应中文:立即生成 |
|
|
'meetingGenerateNow'.tr, // 对应中文:立即生成 |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 16.sp, |
|
|
fontSize: 16.sp, |
|
|
color: Colors.white, |
|
|
color: isDarkMode ? Colors.black : Colors.white, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -381,6 +387,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Widget _item(Map data) { |
|
|
Widget _item(Map data) { |
|
|
|
|
|
final isDarkMode = Theme.of(context).brightness == Brightness.dark; |
|
|
return Container( |
|
|
return Container( |
|
|
width: 200.w, |
|
|
width: 200.w, |
|
|
margin: EdgeInsets.symmetric(horizontal: 8.w), |
|
|
margin: EdgeInsets.symmetric(horizontal: 8.w), |
|
|
@ -399,7 +406,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
Container( |
|
|
Container( |
|
|
padding: EdgeInsets.all(5.w), |
|
|
padding: EdgeInsets.all(5.w), |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
color: Colors.white, |
|
|
color: isDarkMode ? const Color(0xFF2D2D2D) : Colors.white, |
|
|
gradient: _templateData['id'] == data['id'] |
|
|
gradient: _templateData['id'] == data['id'] |
|
|
? const LinearGradient( |
|
|
? const LinearGradient( |
|
|
colors: [Colors.blue, Colors.pinkAccent], |
|
|
colors: [Colors.blue, Colors.pinkAccent], |
|
|
@ -413,7 +420,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
padding: EdgeInsets.all(10.w), |
|
|
padding: EdgeInsets.all(10.w), |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
borderRadius: BorderRadius.circular(10.w), |
|
|
borderRadius: BorderRadius.circular(10.w), |
|
|
color: Colors.white, |
|
|
color: isDarkMode ? const Color(0xFF2D2D2D) : Colors.white, |
|
|
), |
|
|
), |
|
|
child: Column( |
|
|
child: Column( |
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
@ -432,7 +439,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
data['name'], |
|
|
data['name'], |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 16.sp, |
|
|
fontSize: 16.sp, |
|
|
color: Colors.black87, |
|
|
color: isDarkMode ? Colors.white : Colors.black87, |
|
|
fontWeight: FontWeight.bold, |
|
|
fontWeight: FontWeight.bold, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -447,14 +454,18 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
padding: EdgeInsets.symmetric( |
|
|
padding: EdgeInsets.symmetric( |
|
|
horizontal: 5.w, vertical: 2.w), |
|
|
horizontal: 5.w, vertical: 2.w), |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
color: Colors.grey[200], |
|
|
color: isDarkMode |
|
|
|
|
|
? Colors.grey[800] |
|
|
|
|
|
: Colors.grey[200], |
|
|
borderRadius: BorderRadius.circular(4.r), |
|
|
borderRadius: BorderRadius.circular(4.r), |
|
|
), |
|
|
), |
|
|
child: Text( |
|
|
child: Text( |
|
|
data['tag'][idx], |
|
|
data['tag'][idx], |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 10.sp, |
|
|
fontSize: 10.sp, |
|
|
color: Colors.grey[600], |
|
|
color: isDarkMode |
|
|
|
|
|
? Colors.grey[400] |
|
|
|
|
|
: Colors.grey[600], |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
@ -466,7 +477,9 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
overflow: TextOverflow.ellipsis, |
|
|
overflow: TextOverflow.ellipsis, |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 12.sp, |
|
|
fontSize: 12.sp, |
|
|
color: Colors.grey[600], |
|
|
color: isDarkMode |
|
|
|
|
|
? Colors.grey[400] |
|
|
|
|
|
: Colors.grey[600], |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|
@ -527,6 +540,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
String? value, |
|
|
String? value, |
|
|
Widget? widget, |
|
|
Widget? widget, |
|
|
bool isBorder = true, |
|
|
bool isBorder = true, |
|
|
|
|
|
bool isDarkMode = false, |
|
|
Function()? onTap, |
|
|
Function()? onTap, |
|
|
}) { |
|
|
}) { |
|
|
return GestureDetector( |
|
|
return GestureDetector( |
|
|
@ -540,7 +554,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
border: isBorder |
|
|
border: isBorder |
|
|
? Border( |
|
|
? Border( |
|
|
bottom: BorderSide( |
|
|
bottom: BorderSide( |
|
|
color: Colors.grey[300]!, |
|
|
color: isDarkMode ? Colors.grey[700]! : Colors.grey[300]!, |
|
|
), |
|
|
), |
|
|
) |
|
|
) |
|
|
: null, |
|
|
: null, |
|
|
@ -552,7 +566,7 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
title, |
|
|
title, |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 14.sp, |
|
|
fontSize: 14.sp, |
|
|
color: Colors.black87, |
|
|
color: isDarkMode ? Colors.white : Colors.black87, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -566,9 +580,9 @@ class _GenerateBottomSheetState extends State<GenerateBottomSheet> { |
|
|
color: Colors.grey, |
|
|
color: Colors.grey, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
const Icon( |
|
|
Icon( |
|
|
Icons.keyboard_arrow_right, |
|
|
Icons.keyboard_arrow_right, |
|
|
color: Colors.grey, |
|
|
color: isDarkMode ? Colors.grey[500] : Colors.grey, |
|
|
) |
|
|
) |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
|