|
...
|
...
|
@@ -220,7 +220,9 @@ class MessageDialogItemF extends StatelessWidget { |
|
|
|
),
|
|
|
|
),
|
|
|
|
HEmptyView(34),
|
|
|
|
message.message_type == "10" || message.message_type == "12"
|
|
|
|
message.message_type == "10" ||
|
|
|
|
message.message_type == "12" ||
|
|
|
|
message.message_type == "13"
|
|
|
|
? Expanded(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
...
|
...
|
@@ -334,27 +336,33 @@ class MessageDialogItemF extends StatelessWidget { |
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(16),
|
|
|
|
vertical: ScreenUtil().setWidth(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: bgcolor,
|
|
|
|
borderRadius: BorderRadius.circular(8)),
|
|
|
|
child: Text(
|
|
|
|
'${message.message_type == '1' ? message.room_info : message.room_demand}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
message.room_demand == '' ||
|
|
|
|
message.room_demand == null
|
|
|
|
? SizedBox()
|
|
|
|
: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(16),
|
|
|
|
vertical: ScreenUtil().setWidth(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: bgcolor,
|
|
|
|
borderRadius: BorderRadius.circular(8)),
|
|
|
|
child: Text(
|
|
|
|
'${message.room_demand}',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))
|
|
|
|
: SizedBox(),
|
|
|
|
message.message_type == "11" ||
|
|
|
|
message.message_type == "16" ||
|
|
|
|
message.message_type == "1"
|
|
|
|
? Column(
|
|
|
|
? Expanded(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
...
|
...
|
@@ -364,22 +372,49 @@ class MessageDialogItemF extends StatelessWidget { |
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
message.room_demand == ''
|
|
|
|
? SizedBox()
|
|
|
|
: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(16),
|
|
|
|
vertical: ScreenUtil().setWidth(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: bgcolor,
|
|
|
|
borderRadius: BorderRadius.circular(8)),
|
|
|
|
child: Text(
|
|
|
|
'${message.room_demand}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
message.message_type == "1"
|
|
|
|
? message.room_info == '' ||
|
|
|
|
message.room_info == null
|
|
|
|
? SizedBox()
|
|
|
|
: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(16),
|
|
|
|
vertical: ScreenUtil().setWidth(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: bgcolor,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(8)),
|
|
|
|
child: Text(
|
|
|
|
'${message.room_info}',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: message.room_demand == '' ||
|
|
|
|
message.room_demand == null
|
|
|
|
? SizedBox()
|
|
|
|
: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(16),
|
|
|
|
vertical: ScreenUtil().setWidth(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: bgcolor,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(8)),
|
|
|
|
child: Text(
|
|
|
|
'${message.room_demand}',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
message.message_type == "1"
|
|
|
|
? SizedBox()
|
|
|
|
: Text(
|
|
...
|
...
|
@@ -393,7 +428,7 @@ class MessageDialogItemF extends StatelessWidget { |
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
|
|
|
))
|
|
|
|
: SizedBox(),
|
|
|
|
message.message_type == "15"
|
|
|
|
? Column(
|
...
|
...
|
|