点击区域优化

This commit is contained in:
fuenmao 2025-01-07 11:36:57 +08:00
parent cf8f710a38
commit 87bea363b6
1 changed files with 58 additions and 54 deletions

View File

@ -86,7 +86,7 @@ class MeetingMainPageState extends State<MeetingMainPage> {
width: 92.w, width: 92.w,
child: Row( child: Row(
children: [ children: [
GestureDetector( /*GestureDetector(
child: Image.asset( child: Image.asset(
'assets/images/meeting_main_narrow.png', 'assets/images/meeting_main_narrow.png',
width: 20.w, width: 20.w,
@ -94,7 +94,7 @@ class MeetingMainPageState extends State<MeetingMainPage> {
), ),
onTap: () {}, onTap: () {},
), ),
SizedBox(width: 16.w), SizedBox(width: 16.w),*/
GestureDetector( GestureDetector(
child: Image.asset( child: Image.asset(
state.communicationMode.value == 1 state.communicationMode.value == 1
@ -134,37 +134,40 @@ class MeetingMainPageState extends State<MeetingMainPage> {
), ),
), ),
GestureDetector( GestureDetector(
child: Column( child: Container(
mainAxisAlignment: MainAxisAlignment.center, color: ColorUtil.Color_0_0_0_0,
children: [ child: Column(
Row( mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text( Row(
state.meetingRoomInfo.value children: [
?.roomName ?? Text(
'', state.meetingRoomInfo.value
style: TextStyle( ?.roomName ??
color: Colors.white, '',
fontSize: 14.sp, style: TextStyle(
fontWeight: FontWeight.w500), color: Colors.white,
), fontSize: 14.sp,
SizedBox(width: 4.w), fontWeight: FontWeight.w500),
Image.asset( ),
'assets/images/meeting_main_down.png', SizedBox(width: 4.w),
width: 16.w, Image.asset(
height: 16.h, 'assets/images/meeting_main_down.png',
) width: 16.w,
], height: 16.h,
), )
SizedBox(height: 4.h), ],
Text(
state.duration.value,
style: TextStyle(
color: Colors.white,
fontSize: 12.sp,
), ),
) SizedBox(height: 4.h),
], Text(
state.duration.value,
style: TextStyle(
color: Colors.white,
fontSize: 12.sp,
),
)
],
),
), ),
onTap: () { onTap: () {
logic.changeMeetingInfoState(true); logic.changeMeetingInfoState(true);
@ -739,31 +742,31 @@ class MeetingMainPageState extends State<MeetingMainPage> {
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: ColorUtil.Color_134_134_134), color: ColorUtil.Color_134_134_134),
), ),
Row( GestureDetector(
children: [ child: Container(
Text( color: ColorUtil.Color_0_0_0_0,
state.roomNumber.value, child: Row(
style: TextStyle( children: [
fontSize: 12.sp, Text(
color: ColorUtil.Color_202_202_202, state.roomNumber.value,
fontWeight: FontWeight.w500), style: TextStyle(
), fontSize: 12.sp,
SizedBox(width: 12.w), color: ColorUtil.Color_202_202_202,
GestureDetector( fontWeight: FontWeight.w500),
child: Container( ),
child: Image.asset( const SizedBox(width: 12),
Image.asset(
'assets/images/meeting_main_copy.png', 'assets/images/meeting_main_copy.png',
width: 18.w, width: 18.w,
height: 18.h, height: 18.h,
), )
padding: const EdgeInsets.all(4), ],
), ),
onTap: (){ ),
Clipboard.setData(ClipboardData(text: state.roomNumber.value)); onTap: (){
ToastUtils.showSuccess("复制成功"); Clipboard.setData(ClipboardData(text: state.roomNumber.value));
}, ToastUtils.showSuccess("复制成功");
) },
],
) )
], ],
), ),
@ -834,6 +837,7 @@ class MeetingMainPageState extends State<MeetingMainPage> {
SizedBox(height: 10.h), SizedBox(height: 10.h),
GestureDetector( GestureDetector(
child: Container( child: Container(
color: ColorUtil.Color_0_0_0_0,
padding: const EdgeInsets.only(top: 10, bottom: 10), padding: const EdgeInsets.only(top: 10, bottom: 10),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,