点击区域优化1

This commit is contained in:
fuenmao 2025-01-07 11:45:00 +08:00
parent 87bea363b6
commit 9161c33741
1 changed files with 28 additions and 24 deletions

View File

@ -898,7 +898,6 @@ class MeetingMainPageState extends State<MeetingMainPage> {
color: ColorUtil.Color_57_57_57_08, color: ColorUtil.Color_57_57_57_08,
child: Container( child: Container(
width: double.infinity, width: double.infinity,
padding: const EdgeInsets.only(top: 16, bottom: 16),
margin: const EdgeInsets.only(left: 40, right: 40), margin: const EdgeInsets.only(left: 40, right: 40),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: const BorderRadius.all(Radius.circular(6)), borderRadius: const BorderRadius.all(Radius.circular(6)),
@ -928,8 +927,8 @@ class MeetingMainPageState extends State<MeetingMainPage> {
List<Widget> audioList() { List<Widget> audioList() {
List<Widget> audioList = []; List<Widget> audioList = [];
audioList.add(GestureDetector( audioList.add(GestureDetector(
child: Column(children: [ child: Container(
Text( child: Text(
'听筒', '听筒',
style: TextStyle( style: TextStyle(
fontSize: 14.sp, fontSize: 14.sp,
@ -940,33 +939,38 @@ class MeetingMainPageState extends State<MeetingMainPage> {
? ColorUtil.Color_85_117_242 ? ColorUtil.Color_85_117_242
: ColorUtil.Color_134_134_134), : ColorUtil.Color_134_134_134),
), ),
Container( color: ColorUtil.Color_0_0_0_0,
width: double.infinity, width: double.infinity,
height: 1.h, height: 46.h,
color: ColorUtil.Color_49_47_47, alignment: Alignment.center,
margin: const EdgeInsets.only(top: 14, bottom: 14), ),
)
]),
onTap: () { onTap: () {
logic.setEnableSpeakerphone(1); logic.setEnableSpeakerphone(1);
logic.changeMeetingAudioState(false); logic.changeMeetingAudioState(false);
}, },
)); ));
audioList.add(Container(
width: double.infinity,
height: 1.h,
color: ColorUtil.Color_49_47_47,
));
audioList.add(GestureDetector( audioList.add(GestureDetector(
child: Column( child: Container(
children: [ child: Text(
Text( '扬声器',
'扬声器', style: TextStyle(
style: TextStyle( fontSize: 14.sp,
fontSize: 14.sp, fontWeight: state.communicationMode.value == 3
fontWeight: state.communicationMode.value == 3 ? FontWeight.w500
? FontWeight.w500 : FontWeight.w400,
: FontWeight.w400, color: state.communicationMode.value == 3
color: state.communicationMode.value == 3 ? ColorUtil.Color_85_117_242
? ColorUtil.Color_85_117_242 : ColorUtil.Color_134_134_134),
: ColorUtil.Color_134_134_134), ),
), color: ColorUtil.Color_0_0_0_0,
], width: double.infinity,
height: 46.h,
alignment: Alignment.center,
), ),
onTap: () { onTap: () {
logic.setEnableSpeakerphone(3); logic.setEnableSpeakerphone(3);