结束发言按钮和布局改动
This commit is contained in:
parent
79d8d0a437
commit
e1542212aa
|
|
@ -164,22 +164,6 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
/// 结束发言
|
|
||||||
Visibility(
|
|
||||||
visible: state.isSpeak.value,
|
|
||||||
child: GestureDetector(
|
|
||||||
child: Image.asset(
|
|
||||||
'assets/images/meeting_main_hang_up.png',
|
|
||||||
width: 22.w,
|
|
||||||
height: 22.h,
|
|
||||||
),
|
|
||||||
onTap: () {
|
|
||||||
logic.cancelSpeak();
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(width: 16.w),
|
|
||||||
|
|
||||||
/// 退出会议
|
/// 退出会议
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
|
|
@ -288,52 +272,82 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
)
|
)
|
||||||
: Container()),
|
: Container()),
|
||||||
|
|
||||||
GestureDetector(
|
Row(
|
||||||
child: Container(
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
width: 180.w,
|
children: [
|
||||||
height: 40.h,
|
GestureDetector(
|
||||||
margin:
|
child: Container(
|
||||||
|
width: 200.w,
|
||||||
|
height: 40.h,
|
||||||
|
margin:
|
||||||
const EdgeInsets.only(left: 20, bottom: 40),
|
const EdgeInsets.only(left: 20, bottom: 40),
|
||||||
padding: const EdgeInsets.only(left: 20),
|
padding: const EdgeInsets.only(left: 20),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.only(
|
||||||
bottomLeft: Radius.circular(56),
|
bottomLeft: Radius.circular(56),
|
||||||
topRight: Radius.circular(50),
|
topRight: Radius.circular(50),
|
||||||
bottomRight: Radius.circular(50)),
|
bottomRight: Radius.circular(50)),
|
||||||
color: ColorUtil.Color_35_35_35_07,
|
color: ColorUtil.Color_35_35_35_07,
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
width: 1.w,
|
width: 1.w,
|
||||||
color: ColorUtil.Color_99_111_158),
|
color: ColorUtil.Color_99_111_158),
|
||||||
),
|
|
||||||
child: Row(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Image.asset(
|
|
||||||
'assets/images/meeting_main_chat.png',
|
|
||||||
width: 18.w,
|
|
||||||
height: 18.h,
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 6.w),
|
child: Row(
|
||||||
Text(
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
'说点什么...',
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
style: TextStyle(
|
children: [
|
||||||
fontSize: 14.sp,
|
Image.asset(
|
||||||
color: ColorUtil.Color_156_156_156),
|
'assets/images/meeting_main_chat.png',
|
||||||
)
|
width: 18.w,
|
||||||
],
|
height: 18.h,
|
||||||
|
),
|
||||||
|
SizedBox(width: 6.w),
|
||||||
|
Text(
|
||||||
|
'说点什么...',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14.sp,
|
||||||
|
color: ColorUtil.Color_156_156_156),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
onTap: () {
|
||||||
|
Get.bottomSheet(
|
||||||
|
isScrollControlled: true,
|
||||||
|
chatBottomSheet(context));
|
||||||
|
Future.delayed(const Duration(milliseconds: 100),
|
||||||
|
() {
|
||||||
|
state.chatController.jumpTo(state
|
||||||
|
.chatController.position.maxScrollExtent);
|
||||||
|
});
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
|
||||||
onTap: () {
|
Visibility(
|
||||||
Get.bottomSheet(
|
visible: state.isSpeak.value,
|
||||||
isScrollControlled: true,
|
child: GestureDetector(
|
||||||
chatBottomSheet(context));
|
child: Container(
|
||||||
Future.delayed(const Duration(milliseconds: 100),
|
width: 82.w,
|
||||||
() {
|
height: 40.h,
|
||||||
state.chatController.jumpTo(state
|
margin: const EdgeInsets.only(left: 12, bottom: 40,right: 20),
|
||||||
.chatController.position.maxScrollExtent);
|
alignment: Alignment.center,
|
||||||
});
|
decoration: const BoxDecoration(
|
||||||
},
|
borderRadius: BorderRadius.all(Radius.circular(99)),
|
||||||
|
color: ColorUtil.Color_255_69_69
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
'结束发言',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14.sp,
|
||||||
|
color: ColorUtil.Color_255_255_255),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
onTap: () {
|
||||||
|
logic.cancelSpeak();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,8 @@ class ColorUtil {
|
||||||
|
|
||||||
static const Color_16_19_13 = Color.fromRGBO(16, 19, 13, 1);
|
static const Color_16_19_13 = Color.fromRGBO(16, 19, 13, 1);
|
||||||
|
|
||||||
|
static const Color_255_69_69 = Color.fromRGBO(255, 69, 69, 1);
|
||||||
|
|
||||||
/// 十六进制颜色,
|
/// 十六进制颜色,
|
||||||
/// hex, 十六进制值,例如:0xffffff,
|
/// hex, 十六进制值,例如:0xffffff,
|
||||||
/// alpha, 透明度 [0.0,1.0]
|
/// alpha, 透明度 [0.0,1.0]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue