Browse Source

Merge commit '03119240fe96c3d46c1cc2ed453aa250d78fa67b' into lxm

weicu
lxm 2 years ago
parent
commit
cbbcac8614
  1. 72
      lib/modules/meeting/views/meeting_details_view.dart
  2. 20
      lib/modules/meeting/views/meeting_edit_view.dart
  3. 29
      lib/modules/meeting/views/meeting_record_view.dart

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

@ -56,16 +56,19 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
Row(
children: [
Expanded(
child: Text(
controller.meetingData.value.title,
style: TextStyle(
color: isDarkMode ? Colors.white : Colors.black87,
fontSize: 17.sp,
),
),
Padding(
padding: EdgeInsets.symmetric(vertical: 5.w),
child: Text(
),
10.horizontalSpace,
Text(
DateUtil.formatDateMs(
controller.meetingData.value.creationtime,
format: DateFormats.y_mo_d_h_m,
@ -75,6 +78,26 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
fontSize: 14.sp,
),
),
],
),
Padding(
padding: EdgeInsets.symmetric(vertical: 5.w),
child: Row(
children: [
Icon(
Icons.location_on,
size: 16.w,
color: isDarkMode ? Colors.grey[400] : Colors.grey[500],
),
Text(
'深圳市高新技术产业园区W2-A座',
style: TextStyle(
color: isDarkMode ? Colors.grey[400] : Colors.grey[500],
fontSize: 14.sp,
),
),
],
),
),
_audioWave(isDarkMode),
_recordContent(isDarkMode),
@ -219,14 +242,45 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
),
],
),
child: Align(
alignment: Alignment.topLeft,
child: SingleChildScrollView(
reverse: true,
child: DefaultTabController(
length: 2,
child: Column(
children: [
SizedBox(
height: 40.w,
child: TabBar(
indicatorSize: TabBarIndicatorSize.tab,
indicatorColor: isDarkMode ? AppColors.primary : Colors.blue,
labelColor: isDarkMode ? AppColors.primary : Colors.blue,
labelStyle: TextStyle(
color: isDarkMode ? Colors.white : Colors.black87,
fontSize: 14.sp,
),
tabs: const [
Tab(text: 'AI总结'),
Tab(text: '会议原文'),
],
),
),
10.verticalSpace,
Expanded(
child: TabBarView(
children: [
SingleChildScrollView(
child: Text(
controller.dataDetails.value.content,
),
),
SingleChildScrollView(
child: Text(
controller.dataDetails.value.content,
),
),
],
),
),
],
),
),
),
);
@ -235,7 +289,7 @@ class MeetingDetailsView extends GetView<MeetingDetailsController> {
// 底部按钮
Widget _bottomButton(bool isDarkMode) {
return Container(
padding: EdgeInsets.only(top: 40.w, bottom: 30.w),
padding: EdgeInsets.only(top: 20.w, bottom: 10.w),
alignment: Alignment.center,
child: GestureDetector(
onTap: () {

20
lib/modules/meeting/views/meeting_edit_view.dart

@ -112,6 +112,22 @@ class MeetingEditView extends GetView<MeetingEditController> {
),
),
),
Row(
children: [
Icon(
Icons.location_on,
size: 16.w,
color: isDarkMode ? Colors.grey[400] : Colors.grey[500],
),
Text(
'深圳市高新技术产业园区W2-A座',
style: TextStyle(
color: isDarkMode ? Colors.grey[400] : Colors.grey[500],
fontSize: 14.sp,
),
),
],
),
_audioWave(isDarkMode),
_recordContent(isDarkMode),
],
@ -271,9 +287,7 @@ class MeetingEditView extends GetView<MeetingEditController> {
fillColor: Colors.transparent,
border: InputBorder.none,
focusedBorder: InputBorder.none,
contentPadding: EdgeInsets.symmetric(
horizontal: 10.w,
),
contentPadding: EdgeInsets.zero,
),
),
),

29
lib/modules/meeting/views/meeting_record_view.dart

@ -96,6 +96,9 @@ class MeetingRecordView extends GetView<MeetingRecordController> {
10.verticalSpace,
Padding(
padding: EdgeInsets.symmetric(horizontal: 12.w),
child: Row(
children: [
Expanded(
child: Text(
controller.title,
style: TextStyle(
@ -104,9 +107,8 @@ class MeetingRecordView extends GetView<MeetingRecordController> {
),
),
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 5.w),
child: Text(
10.horizontalSpace,
Text(
DateUtil.formatDateMs(
controller.creationTime,
format: DateFormats.y_mo_d_h_m,
@ -116,6 +118,27 @@ class MeetingRecordView extends GetView<MeetingRecordController> {
fontSize: 14.sp,
),
),
],
),
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 5.w),
child: Row(
children: [
Icon(
Icons.location_on,
size: 16.w,
color: isDarkMode ? Colors.grey[400] : Colors.grey[500],
),
Text(
'深圳市高新技术产业园区W2-A座',
style: TextStyle(
color: isDarkMode ? Colors.grey[400] : Colors.grey[500],
fontSize: 14.sp,
),
),
],
),
),
_recordContent(isDarkMode),
_bottomButton(isDarkMode),

Loading…
Cancel
Save