更新商品悬浮大小

master
章文轩 2 years ago
parent 6a1b751854
commit 634aa29577

@ -572,11 +572,11 @@ class _ChatKFPageState extends State<ChatKFPage>
showGood? Positioned( showGood? Positioned(
top: 0, top: 0,
child:Container( child:Container(
width: 300, width: MediaQuery.of(context).size.width,
margin: EdgeInsets.all(10),
padding: EdgeInsets.symmetric(vertical: 10), padding: EdgeInsets.symmetric(vertical: 10),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xFFe5f9ff).withOpacity(0.8), color: Color(0xFFe5f9ff),
borderRadius: BorderRadius.all(Radius.circular(5)), borderRadius: BorderRadius.all(Radius.circular(5)),
), ),
child: Row( child: Row(

@ -253,15 +253,15 @@ class MessageWidget extends StatelessWidget {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
Container( // Container(
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: Colors.grey),
maxLines: 1, // maxLines: 1,
overflow: TextOverflow.ellipsis, // overflow: TextOverflow.ellipsis,
), // ),
) // )
// Gaps.vGap4, // Gaps.vGap4,
], ],
), ),
@ -689,15 +689,15 @@ class MessageWidget extends StatelessWidget {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
Container( // Container(
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: Colors.grey),
maxLines: 1, // maxLines: 1,
overflow: TextOverflow.ellipsis, // overflow: TextOverflow.ellipsis,
), // ),
) // )
// Gaps.vGap4, // Gaps.vGap4,
], ],
), ),

Loading…
Cancel
Save