修改消息宽度和图片大小

master
章文轩 2 years ago
parent 5b06d854ca
commit ca167b983b

@ -171,8 +171,8 @@ class _ChatTypePageState extends State<ChatTypePage> {
onTap: (){ onTap: (){
custom = json.encode({ custom = json.encode({
"type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, // "type": BytedeskConstants.MESSAGE_TYPE_COMMODITY, //
"title": "222", // , "title": "222222222222212312312321321", // ,
"content": "222", // , "content": "1232132131232131231232132121213213213123", // ,
"price": "222", // , "price": "222", // ,
"url": "url":
"https://item.m.jd.com/product/12172344.html", // url, "https://item.m.jd.com/product/12172344.html", // url,

@ -39,7 +39,7 @@ class MessageWidget extends StatelessWidget {
// widget // widget
Widget _buildSendWidget(BuildContext context) { Widget _buildSendWidget(BuildContext context) {
double tWidth = MediaQuery.of(context).size.width - 160; double tWidth = MediaQuery.of(context).size.width - 130;
// FIXME: // FIXME:
String status = ''; String status = '';
if (message!.status == BytedeskConstants.MESSAGE_STATUS_SENDING) { if (message!.status == BytedeskConstants.MESSAGE_STATUS_SENDING) {
@ -224,8 +224,8 @@ class MessageWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Container( Container(
width: 90.0, width: 80.0,
height: 90.0, height: 80.0,
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: imageUrl, imageUrl: imageUrl,
), ),
@ -258,7 +258,7 @@ class MessageWidget extends StatelessWidget {
margin: EdgeInsets.only(top: 10, left: 8), margin: EdgeInsets.only(top: 10, left: 8),
child: Text( child: Text(
'$content', '$content',
style: TextStyle(fontSize: 12, color: Colors.grey), style: TextStyle(fontSize: 12, color: Color(0xFF333333)),
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
@ -695,7 +695,7 @@ class MessageWidget extends StatelessWidget {
margin: EdgeInsets.only(top: 10, left: 8), margin: EdgeInsets.only(top: 10, left: 8),
child: Text( child: Text(
'$content', '$content',
style: TextStyle(fontSize: 12, color: Colors.grey), style: TextStyle(fontSize: 12, color: Color(0xFF333333)),
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),

@ -29,7 +29,7 @@ class ExtraItem extends StatelessWidget {
print('功能暂未实现') print('功能暂未实现')
}, },
child: Padding( child: Padding(
padding: EdgeInsets.only(left: 15, top: 13, right: 15, bottom: 0), padding: EdgeInsets.only(left: 10, top: 13, right: 10, bottom: 0),
child: Column( child: Column(
children: [ children: [
Container( Container(

Loading…
Cancel
Save