Browse Source

feat(Meeting ui): 添加暗黑模式支持并重构UI工具类

重构颜色和样式处理逻辑,新增MeetingUIUtils工具类统一管理UI样式
修改多个组件以支持暗黑模式,包括背景色、文本颜色和阴影效果
优化底部弹窗和页面布局在不同主题下的显示一致性
weicu
lxm 1 year ago
parent
commit
3f3fbde2a3
  1. 2
      .gitignore
  2. 63
      lib/modules/meeting/utils/meeting_ui_utils.dart
  3. 4
      lib/modules/meeting/views/bottomSheet/ai_bottom_sheet.dart
  4. 2
      lib/modules/meeting/views/bottomSheet/edit_title_bottom_sheet.dart
  5. 4
      lib/modules/meeting/views/bottomSheet/filtrate_drawer.dart
  6. 26
      lib/modules/meeting/views/bottomSheet/import_audio_bottom_sheet.dart
  7. 2
      lib/modules/meeting/views/bottomSheet/more_bottom_sheet.dart
  8. 21
      lib/modules/meeting/views/bottomSheet/navigation_bar_bottom_sheet.dart
  9. 4
      lib/modules/meeting/views/bottomSheet/share_bottom_sheet.dart
  10. 4
      lib/modules/meeting/views/bottomSheet/statistics_bottom_sheet.dart
  11. 60
      lib/modules/meeting/views/meeting_connect_view.dart
  12. 54
      lib/modules/meeting/views/meeting_details_view.dart
  13. 53
      lib/modules/meeting/views/meeting_home_view.dart
  14. 30
      lib/modules/meeting/views/meeting_mine_view.dart
  15. 21
      lib/modules/meeting/views/meeting_view.dart
  16. 39
      lib/modules/meeting/views/tabs/overview_tab.dart
  17. 16
      lib/modules/meeting/views/tabs/speech_tab.dart
  18. 10
      lib/modules/meeting/views/tabs/summary_tab.dart

2
.gitignore

@ -221,4 +221,4 @@ fastlane/test_output
fastlane/readme.md fastlane/readme.md
.trae/rules/project_rules.md .trae/rules/project_rules.md
.augment/rules/imported/project_rules.md .augment/rules/imported/project_rules.md
.kiro/steering/flutter_project_standards.md .kiro/

63
lib/modules/meeting/utils/meeting_ui_utils.dart

@ -0,0 +1,63 @@
import 'package:flutter/material.dart';
/// 会议模块UI工具类
/// 提供统一的颜色和样式方法,确保UI风格一致性
class MeetingUIUtils {
/// 获取背景颜色
static Color getBackgroundColor(bool isDarkMode) {
return isDarkMode ? Colors.black : Colors.grey[50]!;
}
/// 获取卡片背景颜色
static Color getCardColor(bool isDarkMode) {
return isDarkMode ? const Color(0xFF1A1A1A) : Colors.white;
}
/// 获取半透明白色
static Color getTranslucentWhite(double alpha) {
return Colors.white.withValues(alpha: alpha);
}
/// 获取半透明黑色
static Color getTranslucentBlack(double alpha) {
return Colors.black.withValues(alpha: alpha);
}
/// 获取主文本颜色
static Color getTextColor(bool isDarkMode) {
return isDarkMode ? Colors.white : Colors.grey[800]!;
}
/// 获取次要文本颜色
static Color getSecondaryTextColor(bool isDarkMode) {
return isDarkMode ? Colors.grey[400]! : Colors.grey[600]!;
}
/// 获取卡片阴影
static List<BoxShadow> getCardShadow(bool isDarkMode) {
return [
BoxShadow(
color: isDarkMode
? Colors.black.withValues(alpha: 0.2)
: Colors.black.withValues(alpha: 0.05),
blurRadius: 10,
offset: const Offset(0, 4),
),
];
}
/// 获取按钮颜色
static Color getButtonColor(bool isDarkMode) {
return isDarkMode ? const Color(0xFF0066CC) : Colors.blue;
}
/// 获取带透明度的颜色
static Color getColorWithAlpha(Color color, double alpha) {
return color.withValues(alpha: alpha);
}
/// 获取禁用状态的颜色
static Color getDisabledColor(Color color, bool isEnabled) {
return isEnabled ? color : color.withValues(alpha: 0.5);
}
}

4
lib/modules/meeting/views/bottomSheet/ai_bottom_sheet.dart

@ -292,8 +292,8 @@ class _AIBottomSheetState extends State<AIBottomSheet> {
begin: Alignment.centerLeft, begin: Alignment.centerLeft,
end: Alignment.centerRight, end: Alignment.centerRight,
colors: [ colors: [
const Color(0xFFab47bc).withOpacity(0.1), // 薰衣草紫 const Color(0xFFab47bc).withValues(alpha: 0.1), // 薰衣草紫
const Color(0xFFec407a).withOpacity(0.2), // 品红 const Color(0xFFec407a).withValues(alpha: 0.2), // 品红
], ],
), ),
), ),

2
lib/modules/meeting/views/bottomSheet/edit_title_bottom_sheet.dart

@ -60,7 +60,7 @@ class EditTitleBottomSheet extends GetView<MeetingHomeController> {
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black.withOpacity(0.05), color: Colors.black.withValues(alpha: 0.05),
blurRadius: 10, blurRadius: 10,
offset: const Offset(0, 2), offset: const Offset(0, 2),
), ),

4
lib/modules/meeting/views/bottomSheet/filtrate_drawer.dart

@ -93,7 +93,7 @@ class _FiltrateDrawerState extends State<FiltrateDrawer> {
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black.withOpacity(0.06), color: Colors.black.withValues(alpha: 0.06),
blurRadius: 10, blurRadius: 10,
offset: const Offset(0, 2), offset: const Offset(0, 2),
), ),
@ -154,7 +154,7 @@ class _FiltrateDrawerState extends State<FiltrateDrawer> {
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black.withOpacity(0.06), color: Colors.black.withValues(alpha: 0.06),
blurRadius: 10, blurRadius: 10,
offset: const Offset(0, 2), offset: const Offset(0, 2),
), ),

26
lib/modules/meeting/views/bottomSheet/import_audio_bottom_sheet.dart

@ -10,6 +10,7 @@ class ImportAudioBottomSheet extends GetView<MeetingHomeController> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
return Padding( return Padding(
padding: EdgeInsets.symmetric(horizontal: 12.w), padding: EdgeInsets.symmetric(horizontal: 12.w),
child: Column( child: Column(
@ -24,7 +25,7 @@ class ImportAudioBottomSheet extends GetView<MeetingHomeController> {
'添加音频', '添加音频',
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,
), ),
), ),
@ -34,7 +35,7 @@ class ImportAudioBottomSheet extends GetView<MeetingHomeController> {
width: 26.w, width: 26.w,
height: 26.w, height: 26.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: isDarkMode ? Colors.grey[800] : Colors.white,
borderRadius: BorderRadius.circular(26.r), borderRadius: BorderRadius.circular(26.r),
), ),
child: Icon( child: Icon(
@ -49,7 +50,7 @@ class ImportAudioBottomSheet extends GetView<MeetingHomeController> {
), ),
Divider( Divider(
height: 1, height: 1,
color: Colors.grey[300], color: isDarkMode ? Colors.grey[700] : Colors.grey[300],
), ),
SizedBox(height: 16.w), SizedBox(height: 16.w),
_importAudioItem(Icons.mic, '现场录音', onTap: () async { _importAudioItem(Icons.mic, '现场录音', onTap: () async {
@ -95,7 +96,7 @@ class ImportAudioBottomSheet extends GetView<MeetingHomeController> {
'支持导入单文件时长不超过5小时的音频', '支持导入单文件时长不超过5小时的音频',
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Colors.grey[600], color: isDarkMode ? Colors.grey[400] : Colors.grey[600],
), ),
), ),
), ),
@ -110,14 +111,19 @@ class ImportAudioBottomSheet extends GetView<MeetingHomeController> {
String title, { String title, {
VoidCallback? onTap, VoidCallback? onTap,
}) { }) {
return GestureDetector( return Builder(
builder: (context) {
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
return GestureDetector(
onTap: onTap, onTap: onTap,
child: Container( child: Container(
height: 48.w, height: 48.w,
padding: EdgeInsets.symmetric(horizontal: 12.w), padding: EdgeInsets.symmetric(horizontal: 12.w),
margin: EdgeInsets.symmetric(vertical: 4.w), margin: EdgeInsets.symmetric(vertical: 4.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.grey[50]!.withOpacity(onTap != null ? 1 : 0.5), color: isDarkMode
? Colors.grey[800]!.withValues(alpha: onTap != null ? 1 : 0.5)
: Colors.grey[50]!.withValues(alpha: onTap != null ? 1 : 0.5),
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
), ),
child: Row( child: Row(
@ -132,18 +138,22 @@ class ImportAudioBottomSheet extends GetView<MeetingHomeController> {
title, title,
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Colors.black87.withOpacity(onTap != null ? 1 : 0.5), color: isDarkMode
? Colors.white.withValues(alpha: onTap != null ? 1 : 0.5)
: Colors.black87.withValues(alpha: onTap != null ? 1 : 0.5),
), ),
), ),
), ),
Icon( Icon(
Icons.arrow_forward_ios, Icons.arrow_forward_ios,
size: 16.w, size: 16.w,
color: Colors.grey.withOpacity(onTap != null ? 1 : 0.5), color: Colors.grey.withValues(alpha: onTap != null ? 1 : 0.5),
), ),
], ],
), ),
), ),
); );
},
);
} }
} }

2
lib/modules/meeting/views/bottomSheet/more_bottom_sheet.dart

@ -85,7 +85,7 @@ class _MoreBottomSheetState extends State<MoreBottomSheet> {
title, title,
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Colors.black87.withOpacity(onTap != null ? 1 : 0.5), color: Colors.black87.withValues(alpha: onTap != null ? 1 : 0.5),
), ),
), ),
), ),

21
lib/modules/meeting/views/bottomSheet/navigation_bar_bottom_sheet.dart

@ -4,6 +4,7 @@ import 'package:get/get_navigation/src/extension_navigation.dart';
import 'package:get/state_manager.dart'; import 'package:get/state_manager.dart';
import '../../controllers/meeting_home_controller.dart'; import '../../controllers/meeting_home_controller.dart';
import '../../utils/meeting_ui_utils.dart';
class NavigationBarBottomSheet extends GetView<MeetingHomeController> { class NavigationBarBottomSheet extends GetView<MeetingHomeController> {
const NavigationBarBottomSheet({super.key}); const NavigationBarBottomSheet({super.key});
@ -15,12 +16,14 @@ class NavigationBarBottomSheet extends GetView<MeetingHomeController> {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
_buildItem( _buildItem(
context, // 传递 context 参数
'开始录音', '开始录音',
Icons.mic_rounded, Icons.mic_rounded,
Colors.red, Colors.red,
), ),
SizedBox(height: 15.w), SizedBox(height: 15.w),
_buildItem( _buildItem(
context, // 传递 context 参数
'导入音频', '导入音频',
Icons.file_upload_outlined, Icons.file_upload_outlined,
Colors.deepPurple, Colors.deepPurple,
@ -36,7 +39,7 @@ class NavigationBarBottomSheet extends GetView<MeetingHomeController> {
width: 45.w, width: 45.w,
height: 45.w, height: 45.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.black.withOpacity(0.8), color: Colors.black.withValues(alpha: 0.8),
borderRadius: BorderRadius.circular(50.w), borderRadius: BorderRadius.circular(50.w),
), ),
child: const Icon(Icons.close, color: Colors.white), child: const Icon(Icons.close, color: Colors.white),
@ -49,11 +52,14 @@ class NavigationBarBottomSheet extends GetView<MeetingHomeController> {
} }
Widget _buildItem( Widget _buildItem(
BuildContext context, // 添加 context 参数
String title, String title,
IconData icon, IconData icon,
Color color, { Color color, {
Function()? onTap, Function()? onTap,
}) { }) {
final isDarkMode =
Theme.of(context).brightness == Brightness.dark; // 在方法内部获取 isDarkMode
return GestureDetector( return GestureDetector(
onTap: onTap, onTap: onTap,
child: Container( child: Container(
@ -61,7 +67,9 @@ class NavigationBarBottomSheet extends GetView<MeetingHomeController> {
height: 60.w, height: 60.w,
padding: EdgeInsets.all(5.w), padding: EdgeInsets.all(5.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white.withOpacity(onTap != null ? 1 : 0.5), color: isDarkMode
? Colors.grey[800]!.withValues(alpha: onTap != null ? 1 : 0.5)
: Colors.white.withValues(alpha: onTap != null ? 1 : 0.5),
borderRadius: BorderRadius.circular(60.w), borderRadius: BorderRadius.circular(60.w),
), ),
child: Row( child: Row(
@ -71,12 +79,12 @@ class NavigationBarBottomSheet extends GetView<MeetingHomeController> {
height: 46.w, height: 46.w,
margin: EdgeInsets.only(right: 5.w), margin: EdgeInsets.only(right: 5.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: color.withOpacity(onTap != null ? 0.3 : 0.2), color: color.withValues(alpha: onTap != null ? 0.3 : 0.2),
borderRadius: BorderRadius.circular(60.w), borderRadius: BorderRadius.circular(60.w),
), ),
child: Icon( child: Icon(
icon, icon,
color: color.withOpacity(onTap != null ? 1 : 0.5), color: color.withValues(alpha: onTap != null ? 1 : 0.5),
), ),
), ),
Expanded( Expanded(
@ -84,7 +92,10 @@ class NavigationBarBottomSheet extends GetView<MeetingHomeController> {
title, title,
style: TextStyle( style: TextStyle(
fontSize: 15.sp, fontSize: 15.sp,
color: Colors.black87.withOpacity(onTap != null ? 1 : 0.5), color: isDarkMode
? Colors.white.withValues(alpha: onTap != null ? 1 : 0.5)
: Colors.black87
.withValues(alpha: onTap != null ? 1 : 0.5),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),

4
lib/modules/meeting/views/bottomSheet/share_bottom_sheet.dart

@ -245,7 +245,7 @@ class _ShareBottomSheetState extends State<ShareBottomSheet> {
title, title,
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
color: Colors.black87.withOpacity(onTap != null ? 1 : 0.5), color: Colors.black87.withValues(alpha: onTap != null ? 1 : 0.5),
), ),
), ),
), ),
@ -272,7 +272,7 @@ class _ShareBottomSheetState extends State<ShareBottomSheet> {
(value) => Get.snackbar( (value) => Get.snackbar(
'success'.tr, // 成功 'success'.tr, // 成功
'复制成功', '复制成功',
backgroundColor: Colors.blue.withOpacity(0.8), backgroundColor: Colors.blue.withValues(alpha: 0.8),
colorText: Colors.white, colorText: Colors.white,
), ),
); );

4
lib/modules/meeting/views/bottomSheet/statistics_bottom_sheet.dart

@ -307,7 +307,7 @@ class _StatisticsBottomSheetState extends State<StatisticsBottomSheet> {
height: 70.w, height: 70.w,
padding: EdgeInsets.all(10.w), padding: EdgeInsets.all(10.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: color.withOpacity(0.2), color: color.withValues(alpha: 0.2),
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
), ),
child: Column( child: Column(
@ -346,7 +346,7 @@ class _StatisticsBottomSheetState extends State<StatisticsBottomSheet> {
child: Container( child: Container(
height: 60.w, height: 60.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: color.withOpacity(0.1), color: color.withValues(alpha: 0.1),
borderRadius: BorderRadius.circular(16.w), borderRadius: BorderRadius.circular(16.w),
), ),
child: Row( child: Row(

60
lib/modules/meeting/views/meeting_connect_view.dart

@ -3,6 +3,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import '../controllers/meeting_connect_controller.dart'; import '../controllers/meeting_connect_controller.dart';
import '../utils/meeting_ui_utils.dart';
class MeetingConnectView extends GetView<MeetingConnectController> { class MeetingConnectView extends GetView<MeetingConnectController> {
const MeetingConnectView({super.key}); const MeetingConnectView({super.key});
@ -12,7 +13,7 @@ class MeetingConnectView extends GetView<MeetingConnectController> {
final isDarkMode = Theme.of(context).brightness == Brightness.dark; final isDarkMode = Theme.of(context).brightness == Brightness.dark;
return Scaffold( return Scaffold(
backgroundColor: isDarkMode ? Colors.black : Colors.grey[50], backgroundColor: MeetingUIUtils.getBackgroundColor(isDarkMode),
appBar: _buildAppBar(isDarkMode), appBar: _buildAppBar(isDarkMode),
body: _buildBody(isDarkMode), body: _buildBody(isDarkMode),
); );
@ -105,34 +106,39 @@ class MeetingConnectView extends GetView<MeetingConnectController> {
} }
Widget _button(String text, IconData icon, {Function()? onTap}) { Widget _button(String text, IconData icon, {Function()? onTap}) {
return GestureDetector( return Builder(
onTap: onTap, builder: (context) {
child: Container( final isDarkMode = Theme.of(context).brightness == Brightness.dark;
width: 150.w, return GestureDetector(
height: 42.w, onTap: onTap,
decoration: BoxDecoration( child: Container(
color: Colors.black, width: 150.w,
borderRadius: BorderRadius.circular(42.w), height: 42.w,
), decoration: BoxDecoration(
child: Row( color: MeetingUIUtils.getButtonColor(isDarkMode),
mainAxisAlignment: MainAxisAlignment.center, borderRadius: BorderRadius.circular(42.w),
children: [
Icon(
icon,
color: Colors.white,
size: 20.sp,
), ),
5.horizontalSpace, child: Row(
Text( mainAxisAlignment: MainAxisAlignment.center,
text, children: [
style: TextStyle( Icon(
color: Colors.white, icon,
fontSize: 14.sp, color: Colors.white,
), size: 20.sp,
),
5.horizontalSpace,
Text(
text,
style: TextStyle(
color: Colors.white,
fontSize: 14.sp,
),
),
],
), ),
], ),
), );
), },
); );
} }
} }

54
lib/modules/meeting/views/meeting_details_view.dart

@ -9,6 +9,7 @@ import 'package:lottie/lottie.dart';
import '../../../core/theme/app_colors.dart'; import '../../../core/theme/app_colors.dart';
import '../controllers/meeting_details_controller.dart'; import '../controllers/meeting_details_controller.dart';
import '../utils/meeting_ui_utils.dart';
import 'tabs/mind_map_tab.dart'; import 'tabs/mind_map_tab.dart';
import 'bottomSheet/more_bottom_sheet.dart'; import 'bottomSheet/more_bottom_sheet.dart';
import 'tabs/overview_tab.dart'; import 'tabs/overview_tab.dart';
@ -26,7 +27,7 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
return PopScope( return PopScope(
onPopInvokedWithResult: controller.popInvokedWithResult, onPopInvokedWithResult: controller.popInvokedWithResult,
child: Scaffold( child: Scaffold(
backgroundColor: isDarkMode ? Colors.black : Colors.grey[50], backgroundColor: MeetingUIUtils.getBackgroundColor(isDarkMode),
appBar: _buildAppBar(context, isDarkMode), appBar: _buildAppBar(context, isDarkMode),
body: _buildBody(isDarkMode), body: _buildBody(isDarkMode),
), ),
@ -40,7 +41,9 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
child: Obx( child: Obx(
() => AppBar( () => AppBar(
backgroundColor: backgroundColor:
controller.isTop.value ? Colors.grey[50] : Colors.grey[200], isDarkMode
? (controller.isTop.value ? Colors.black : Colors.grey[900])
: (controller.isTop.value ? Colors.grey[50] : Colors.grey[200]),
surfaceTintColor: Colors.transparent, surfaceTintColor: Colors.transparent,
elevation: 0.5, elevation: 0.5,
leading: controller.isSpeakerText.value leading: controller.isSpeakerText.value
@ -199,7 +202,7 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
Get.bottomSheet( Get.bottomSheet(
const ShareBottomSheet(), const ShareBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -231,7 +234,7 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
Get.bottomSheet( Get.bottomSheet(
const MoreBottomSheet(), const MoreBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -360,24 +363,29 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
} }
Widget _meetingWait(String title) { Widget _meetingWait(String title) {
return Stack( return Builder(
alignment: Alignment.topCenter, builder: (context) {
children: [ final isDarkMode = Theme.of(context).brightness == Brightness.dark;
Lottie.asset( return Stack(
'assets/lottie/meeting_wait.json', alignment: Alignment.topCenter,
), children: [
Positioned( Lottie.asset(
top: 320.w, 'assets/lottie/meeting_wait.json',
child: Text(
title,
style: TextStyle(
fontSize: 18.sp,
color: Colors.black87,
fontWeight: FontWeight.w500,
), ),
), Positioned(
), top: 320.w,
], child: Text(
title,
style: TextStyle(
fontSize: 18.sp,
color: isDarkMode ? Colors.white : Colors.black87,
fontWeight: FontWeight.w500,
),
),
),
],
);
},
); );
} }
@ -400,7 +408,7 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
height: 200.w, height: 200.w,
margin: EdgeInsets.only(bottom: 10.w), margin: EdgeInsets.only(bottom: 10.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.grey[200]!, color: isDarkMode ? Colors.grey[900]! : Colors.grey[200]!,
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
bottom: Radius.circular(20.r), bottom: Radius.circular(20.r),
), ),
@ -410,7 +418,7 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
Container( Container(
margin: EdgeInsets.only(bottom: 5.w), margin: EdgeInsets.only(bottom: 5.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: isDarkMode ? Colors.grey[800] : Colors.white,
borderRadius: BorderRadius.circular(8.r), borderRadius: BorderRadius.circular(8.r),
), ),
child: AudioFileWaveforms( child: AudioFileWaveforms(

53
lib/modules/meeting/views/meeting_home_view.dart

@ -8,6 +8,7 @@ import '../../../core/theme/app_colors.dart';
import '../../../routes/app_routes.dart'; import '../../../routes/app_routes.dart';
import '../controllers/meeting_home_controller.dart'; import '../controllers/meeting_home_controller.dart';
import '../model/meeting_model.dart'; import '../model/meeting_model.dart';
import '../utils/meeting_ui_utils.dart';
import 'bottomSheet/edit_title_bottom_sheet.dart'; import 'bottomSheet/edit_title_bottom_sheet.dart';
import 'bottomSheet/import_audio_bottom_sheet.dart'; import 'bottomSheet/import_audio_bottom_sheet.dart';
@ -33,7 +34,7 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
return PopScope( return PopScope(
onPopInvokedWithResult: _controller.onPopInvokedWithResult, onPopInvokedWithResult: _controller.onPopInvokedWithResult,
child: Scaffold( child: Scaffold(
backgroundColor: isDarkMode ? Colors.black : Colors.grey[100], backgroundColor: MeetingUIUtils.getBackgroundColor(isDarkMode),
appBar: _buildAppBar(isDarkMode), appBar: _buildAppBar(isDarkMode),
body: Column( body: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -56,7 +57,7 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
Get.bottomSheet( Get.bottomSheet(
const ImportAudioBottomSheet(), const ImportAudioBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -86,17 +87,11 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
vertical: 10.w, vertical: 10.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: isDarkMode ? Colors.white.withOpacity(0.05) : Colors.white, color: isDarkMode
? MeetingUIUtils.getTranslucentWhite(0.05)
: MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
boxShadow: [ boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),
BoxShadow(
color: isDarkMode
? Colors.black.withOpacity(0.2)
: Colors.black.withOpacity(0.05),
blurRadius: 10,
offset: const Offset(0, 2),
),
],
), ),
child: Icon( child: Icon(
Icons.format_list_bulleted, Icons.format_list_bulleted,
@ -132,17 +127,11 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
vertical: 10.w, vertical: 10.w,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
color: isDarkMode ? Colors.white.withOpacity(0.05) : Colors.white, color: isDarkMode
? MeetingUIUtils.getTranslucentWhite(0.05)
: MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(50.w), borderRadius: BorderRadius.circular(50.w),
boxShadow: [ boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),
BoxShadow(
color: isDarkMode
? Colors.black.withOpacity(0.2)
: Colors.black.withOpacity(0.05),
blurRadius: 10,
offset: const Offset(0, 2),
),
],
), ),
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
@ -151,7 +140,7 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
width: 32.w, width: 32.w,
height: 32.w, height: 32.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.black, color: MeetingUIUtils.getButtonColor(isDarkMode),
borderRadius: BorderRadius.circular(50.w), borderRadius: BorderRadius.circular(50.w),
), ),
child: Icon( child: Icon(
@ -231,17 +220,11 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 10.w), padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 10.w),
margin: EdgeInsets.symmetric(vertical: 5.w), margin: EdgeInsets.symmetric(vertical: 5.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: isDarkMode ? Colors.white.withOpacity(0.05) : Colors.white, color: isDarkMode
? MeetingUIUtils.getTranslucentWhite(0.05)
: MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
boxShadow: [ boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),
BoxShadow(
color: isDarkMode
? Colors.black.withOpacity(0.2)
: Colors.black.withOpacity(0.05),
blurRadius: 10,
offset: const Offset(0, 2),
),
],
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -249,7 +232,7 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
Text( Text(
data.title, data.title,
style: TextStyle( style: TextStyle(
color: isDarkMode ? Colors.white : Colors.black87, color: MeetingUIUtils.getTextColor(isDarkMode),
fontSize: 18.sp, fontSize: 18.sp,
), ),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
@ -422,7 +405,7 @@ class _MeetingHomeViewState extends State<MeetingHomeView>
Get.bottomSheet( Get.bottomSheet(
EditTitleBottomSheet(data.id), EditTitleBottomSheet(data.id),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),

30
lib/modules/meeting/views/meeting_mine_view.dart

@ -5,6 +5,7 @@ import '../../../routes/app_routes.dart';
import '../../profile/views/unified_avatar.dart'; import '../../profile/views/unified_avatar.dart';
import '../controllers/meeting_mine_controller.dart'; import '../controllers/meeting_mine_controller.dart';
import '../utils/meeting_ui_utils.dart';
import 'bottomSheet/statistics_bottom_sheet.dart'; import 'bottomSheet/statistics_bottom_sheet.dart';
class MeetingMineView extends StatefulWidget { class MeetingMineView extends StatefulWidget {
@ -21,11 +22,14 @@ class _MeetingMineViewState extends State<MeetingMineView>
@override @override
bool get wantKeepAlive => true; bool get wantKeepAlive => true;
// 添加 isDarkMode 作为类的 getter
bool get isDarkMode => Theme.of(context).brightness == Brightness.dark;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
super.build(context); super.build(context);
return Scaffold( return Scaffold(
backgroundColor: Colors.grey[100], backgroundColor: MeetingUIUtils.getBackgroundColor(isDarkMode),
body: Container( body: Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: DecorationImage( image: DecorationImage(
@ -121,7 +125,7 @@ class _MeetingMineViewState extends State<MeetingMineView>
backgroundColor: Colors.grey[200], backgroundColor: Colors.grey[200],
iconColor: Colors.grey[600], iconColor: Colors.grey[600],
iconSize: 25.r, iconSize: 25.r,
isDarkMode: false, isDarkMode: isDarkMode,
), ),
), ),
Expanded( Expanded(
@ -129,7 +133,7 @@ class _MeetingMineViewState extends State<MeetingMineView>
() => Text( () => Text(
_controller.profileCtrl.userInfo.value.name, _controller.profileCtrl.userInfo.value.name,
style: TextStyle( style: TextStyle(
color: Colors.black87, color: isDarkMode ? Colors.white : Colors.black87,
fontSize: 20.sp, fontSize: 20.sp,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@ -159,8 +163,9 @@ class _MeetingMineViewState extends State<MeetingMineView>
padding: EdgeInsets.all(8.w), padding: EdgeInsets.all(8.w),
margin: EdgeInsets.only(bottom: 15.w), margin: EdgeInsets.only(bottom: 15.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(16.w), borderRadius: BorderRadius.circular(16.w),
boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),
), ),
child: Obx( child: Obx(
() => Column( () => Column(
@ -234,7 +239,7 @@ class _MeetingMineViewState extends State<MeetingMineView>
margin: EdgeInsets.symmetric(horizontal: 2.w), margin: EdgeInsets.symmetric(horizontal: 2.w),
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color: color.withOpacity(0.2), color: color.withValues(alpha: 0.2),
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
), ),
child: Row( child: Row(
@ -245,7 +250,7 @@ class _MeetingMineViewState extends State<MeetingMineView>
amount, amount,
style: TextStyle( style: TextStyle(
height: 0.1, height: 0.1,
color: Colors.black87, color: isDarkMode ? Colors.white : Colors.black87,
fontSize: 16.sp, fontSize: 16.sp,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@ -269,7 +274,7 @@ class _MeetingMineViewState extends State<MeetingMineView>
return Container( return Container(
margin: EdgeInsets.only(bottom: 15.w), margin: EdgeInsets.only(bottom: 15.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(16.w), borderRadius: BorderRadius.circular(16.w),
), ),
child: Column( child: Column(
@ -282,7 +287,7 @@ class _MeetingMineViewState extends State<MeetingMineView>
Text( Text(
'DEAPSOUND AI会员', 'DEAPSOUND AI会员',
style: TextStyle( style: TextStyle(
color: Colors.black87, color: MeetingUIUtils.getTextColor(isDarkMode),
fontSize: 16.sp, fontSize: 16.sp,
), ),
), ),
@ -373,8 +378,9 @@ class _MeetingMineViewState extends State<MeetingMineView>
padding: EdgeInsets.symmetric(vertical: 5.w), padding: EdgeInsets.symmetric(vertical: 5.w),
margin: EdgeInsets.only(bottom: 15.w), margin: EdgeInsets.only(bottom: 15.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(16.w), borderRadius: BorderRadius.circular(16.w),
boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),
), ),
child: Column( child: Column(
children: children, children: children,
@ -397,14 +403,14 @@ class _MeetingMineViewState extends State<MeetingMineView>
Icon( Icon(
icon, icon,
size: 24.w, size: 24.w,
color: Colors.grey, color: isDarkMode ? Colors.grey[400] : Colors.grey,
), ),
8.horizontalSpace, 8.horizontalSpace,
Expanded( Expanded(
child: Text( child: Text(
title, title,
style: TextStyle( style: TextStyle(
color: Colors.black87, color: isDarkMode ? Colors.white : Colors.black87,
fontSize: 16.sp, fontSize: 16.sp,
), ),
), ),
@ -423,7 +429,7 @@ class _MeetingMineViewState extends State<MeetingMineView>
Icon( Icon(
Icons.arrow_forward_ios, Icons.arrow_forward_ios,
size: 16.w, size: 16.w,
color: Colors.grey, color: isDarkMode ? Colors.grey[400] : Colors.grey,
), ),
], ],
), ),

21
lib/modules/meeting/views/meeting_view.dart

@ -5,6 +5,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import '../controllers/meeting_controller.dart'; import '../controllers/meeting_controller.dart';
import '../utils/meeting_ui_utils.dart';
import 'bottomSheet/filtrate_drawer.dart'; import 'bottomSheet/filtrate_drawer.dart';
import 'bottomSheet/navigation_bar_bottom_sheet.dart'; import 'bottomSheet/navigation_bar_bottom_sheet.dart';
@ -13,8 +14,11 @@ class MeetingView extends GetView<MeetingController> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
return Scaffold( return Scaffold(
key: controller.scaffoldKey, key: controller.scaffoldKey,
backgroundColor: MeetingUIUtils.getBackgroundColor(isDarkMode),
body: PageView( body: PageView(
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
controller: controller.pageController, controller: controller.pageController,
@ -22,7 +26,7 @@ class MeetingView extends GetView<MeetingController> {
), ),
drawer: Drawer( drawer: Drawer(
width: 260.w, width: 260.w,
backgroundColor: Colors.grey[50], backgroundColor: isDarkMode ? const Color(0xFF1A1A1A) : Colors.grey[50],
child: const FiltrateDrawer(), child: const FiltrateDrawer(),
), ),
drawerEnableOpenDragGesture: false, drawerEnableOpenDragGesture: false,
@ -48,10 +52,10 @@ class MeetingView extends GetView<MeetingController> {
label: '我的', label: '我的',
), ),
], ],
backgroundColor: Colors.white, backgroundColor: isDarkMode ? const Color(0xFF1A1A1A) : Colors.white,
currentIndex: controller.pageIndex.value, currentIndex: controller.pageIndex.value,
unselectedItemColor: Colors.grey, unselectedItemColor: Colors.grey,
selectedItemColor: Colors.red, selectedItemColor: isDarkMode ? Colors.white : Colors.blue,
unselectedFontSize: 10.sp, unselectedFontSize: 10.sp,
selectedFontSize: 10.sp, selectedFontSize: 10.sp,
onTap: (int index) { onTap: (int index) {
@ -84,13 +88,20 @@ class MeetingView extends GetView<MeetingController> {
padding: EdgeInsets.all(5.w), padding: EdgeInsets.all(5.w),
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: isDarkMode ? const Color(0xFF1A1A1A) : Colors.white,
borderRadius: BorderRadius.circular(60.w), borderRadius: BorderRadius.circular(60.w),
boxShadow: [
BoxShadow(
color: Colors.black.withValues(alpha: isDarkMode ? 0.3 : 0.1),
blurRadius: 8,
offset: const Offset(0, 2),
),
],
), ),
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.red, color: MeetingUIUtils.getButtonColor(isDarkMode),
borderRadius: BorderRadius.circular(60.w), borderRadius: BorderRadius.circular(60.w),
), ),
child: Icon( child: Icon(

39
lib/modules/meeting/views/tabs/overview_tab.dart

@ -4,6 +4,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import '../../controllers/meeting_details_controller.dart'; import '../../controllers/meeting_details_controller.dart';
import '../../utils/meeting_ui_utils.dart';
import '../bottomSheet/ai_bottom_sheet.dart'; import '../bottomSheet/ai_bottom_sheet.dart';
import '../bottomSheet/generate_bottom_sheet.dart'; import '../bottomSheet/generate_bottom_sheet.dart';
@ -29,6 +30,7 @@ class _OverviewTabState extends State<OverviewTab> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
return Stack( return Stack(
children: [ children: [
_dataList.isNotEmpty _dataList.isNotEmpty
@ -43,7 +45,7 @@ class _OverviewTabState extends State<OverviewTab> {
format: DateFormats.y_mo_d_h_m, format: DateFormats.y_mo_d_h_m,
), ),
style: TextStyle( style: TextStyle(
color: Colors.black54, color: isDarkMode ? Colors.grey[400] : Colors.black54,
fontSize: 12.sp, fontSize: 12.sp,
), ),
), ),
@ -55,6 +57,7 @@ class _OverviewTabState extends State<OverviewTab> {
style: TextStyle( style: TextStyle(
fontSize: 20.sp, fontSize: 20.sp,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: isDarkMode ? Colors.white : Colors.black,
), ),
), ),
), ),
@ -62,7 +65,7 @@ class _OverviewTabState extends State<OverviewTab> {
padding: EdgeInsets.symmetric(vertical: 10.w), padding: EdgeInsets.symmetric(vertical: 10.w),
child: Divider( child: Divider(
height: 1, height: 1,
color: Colors.grey[300], color: isDarkMode ? Colors.grey[700] : Colors.grey[300],
), ),
), ),
Padding( Padding(
@ -70,7 +73,7 @@ class _OverviewTabState extends State<OverviewTab> {
child: Text( child: Text(
'分析出${_dataList.length}个关键事件。', '分析出${_dataList.length}个关键事件。',
style: TextStyle( style: TextStyle(
color: Colors.grey, color: isDarkMode ? Colors.grey[400] : Colors.grey,
fontSize: 12.sp, fontSize: 12.sp,
), ),
), ),
@ -103,7 +106,7 @@ class _OverviewTabState extends State<OverviewTab> {
Get.bottomSheet( Get.bottomSheet(
const AIBottomSheet(), const AIBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.white, backgroundColor: isDarkMode ? Colors.grey[800] : Colors.white,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -122,7 +125,7 @@ class _OverviewTabState extends State<OverviewTab> {
Get.bottomSheet( Get.bottomSheet(
const GenerateBottomSheet(), const GenerateBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -141,22 +144,21 @@ class _OverviewTabState extends State<OverviewTab> {
} }
Widget _item(String data) { Widget _item(String data) {
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
return Container( return Container(
padding: EdgeInsets.all(10.w), padding: EdgeInsets.all(10.w),
margin: EdgeInsets.symmetric(vertical: 5.w), margin: EdgeInsets.symmetric(vertical: 5.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: MeetingUIUtils.getCardColor(isDarkMode),
borderRadius: BorderRadius.circular(12.w), borderRadius: BorderRadius.circular(12.w),
boxShadow: const [ boxShadow: MeetingUIUtils.getCardShadow(isDarkMode),
BoxShadow( ),
color: Color(0x1A3045C8), child: Text(
offset: Offset(0.0, 0.0), data,
blurRadius: 10, style: TextStyle(
spreadRadius: 0.0, color: MeetingUIUtils.getTextColor(isDarkMode),
), ),
],
), ),
child: Text(data),
); );
} }
@ -194,6 +196,7 @@ class _OverviewTabState extends State<OverviewTab> {
} }
Widget _empty() { Widget _empty() {
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
return Padding( return Padding(
padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 30.w), padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 30.w),
child: Column( child: Column(
@ -202,14 +205,14 @@ class _OverviewTabState extends State<OverviewTab> {
padding: EdgeInsets.only(bottom: 10.w), padding: EdgeInsets.only(bottom: 10.w),
child: Icon( child: Icon(
Icons.summarize, Icons.summarize,
color: Colors.grey, color: isDarkMode ? Colors.grey[400] : Colors.grey,
size: 40.sp, size: 40.sp,
), ),
), ),
Text( Text(
'概览', '概览',
style: TextStyle( style: TextStyle(
color: Colors.black87, color: MeetingUIUtils.getTextColor(isDarkMode),
fontSize: 18.sp, fontSize: 18.sp,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@ -217,7 +220,7 @@ class _OverviewTabState extends State<OverviewTab> {
Text( Text(
'AI分析识别录音中的关键事件,让你选择重要事件进行AI生成。', 'AI分析识别录音中的关键事件,让你选择重要事件进行AI生成。',
style: TextStyle( style: TextStyle(
color: Colors.grey, color: MeetingUIUtils.getSecondaryTextColor(isDarkMode),
fontSize: 14.sp, fontSize: 14.sp,
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,

16
lib/modules/meeting/views/tabs/speech_tab.dart

@ -5,6 +5,7 @@ import 'package:get/get.dart';
import 'package:lottie/lottie.dart'; import 'package:lottie/lottie.dart';
import '../../controllers/meeting_details_controller.dart'; import '../../controllers/meeting_details_controller.dart';
import '../../utils/meeting_ui_utils.dart';
import '../bottomSheet/ai_bottom_sheet.dart'; import '../bottomSheet/ai_bottom_sheet.dart';
import '../bottomSheet/generate_bottom_sheet.dart'; import '../bottomSheet/generate_bottom_sheet.dart';
import '../bottomSheet/speaker_all_bottom_sheet.dart'; import '../bottomSheet/speaker_all_bottom_sheet.dart';
@ -15,6 +16,7 @@ class SpeechTab extends GetView<MeetingDetailsController> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
return Stack( return Stack(
children: [ children: [
Obx( Obx(
@ -25,7 +27,7 @@ class SpeechTab extends GetView<MeetingDetailsController> {
Map item = controller.textList[index]; Map item = controller.textList[index];
TextStyle textStyle = TextStyle( TextStyle textStyle = TextStyle(
fontSize: 15.sp, fontSize: 15.sp,
color: Colors.black87, color: MeetingUIUtils.getTextColor(isDarkMode),
letterSpacing: 0, letterSpacing: 0,
height: 1.4, height: 1.4,
); );
@ -56,7 +58,7 @@ class SpeechTab extends GetView<MeetingDetailsController> {
Get.bottomSheet( Get.bottomSheet(
SpeakerBottomSheet(item['id'], item['speaker']), SpeakerBottomSheet(item['id'], item['speaker']),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -82,7 +84,7 @@ class SpeechTab extends GetView<MeetingDetailsController> {
isUtc: true, isUtc: true,
), ),
style: TextStyle( style: TextStyle(
color: Colors.grey, color: MeetingUIUtils.getSecondaryTextColor(isDarkMode),
fontSize: 13.sp, fontSize: 13.sp,
), ),
), ),
@ -227,7 +229,7 @@ class SpeechTab extends GetView<MeetingDetailsController> {
item['content'], item['content'],
style: TextStyle( style: TextStyle(
fontSize: 15.sp, fontSize: 15.sp,
color: isActive ? Colors.red : Colors.black87, color: isActive ? Colors.red : MeetingUIUtils.getTextColor(isDarkMode),
letterSpacing: 0, letterSpacing: 0,
height: 1.4, height: 1.4,
), ),
@ -270,7 +272,7 @@ class SpeechTab extends GetView<MeetingDetailsController> {
Get.bottomSheet( Get.bottomSheet(
const SpeakerAllBottomSheet(), const SpeakerAllBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -288,7 +290,7 @@ class SpeechTab extends GetView<MeetingDetailsController> {
Get.bottomSheet( Get.bottomSheet(
const AIBottomSheet(), const AIBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.white, backgroundColor: isDarkMode ? Colors.grey[800] : Colors.white,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -307,7 +309,7 @@ class SpeechTab extends GetView<MeetingDetailsController> {
Get.bottomSheet( Get.bottomSheet(
const GenerateBottomSheet(), const GenerateBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),

10
lib/modules/meeting/views/tabs/summary_tab.dart

@ -248,7 +248,7 @@ class _SummaryTabState extends State<SummaryTab> {
left: BorderSide( left: BorderSide(
width: 2, width: 2,
color: isDarkMode color: isDarkMode
? Colors.white.withOpacity(0.1) ? Colors.white.withValues(alpha: 0.1)
: Colors.grey[300]!, : Colors.grey[300]!,
), ),
), ),
@ -351,7 +351,7 @@ class _SummaryTabState extends State<SummaryTab> {
Get.bottomSheet( Get.bottomSheet(
const SpeakerAllBottomSheet(), const SpeakerAllBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -368,7 +368,7 @@ class _SummaryTabState extends State<SummaryTab> {
Get.bottomSheet( Get.bottomSheet(
const AIBottomSheet(), const AIBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.white, backgroundColor: isDarkMode ? Colors.grey[800] : Colors.white,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -387,7 +387,7 @@ class _SummaryTabState extends State<SummaryTab> {
Get.bottomSheet( Get.bottomSheet(
const GenerateBottomSheet(), const GenerateBottomSheet(),
isScrollControlled: true, isScrollControlled: true,
backgroundColor: Colors.grey[100], backgroundColor: isDarkMode ? Colors.grey[800] : Colors.grey[100],
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical( borderRadius: BorderRadius.vertical(
top: Radius.circular(12.r), top: Radius.circular(12.r),
@ -408,7 +408,7 @@ class _SummaryTabState extends State<SummaryTab> {
right: -12.w, right: -12.w,
child: Container( child: Container(
height: 40, height: 40,
color: Colors.white, color: isDarkMode ? Colors.grey[800] : Colors.white,
alignment: Alignment.center, alignment: Alignment.center,
child: FleatherToolbar.basic( child: FleatherToolbar.basic(
controller: _fleatherController!, controller: _fleatherController!,

Loading…
Cancel
Save