minor fix

This commit is contained in:
Serhii 2023-12-15 16:41:28 +02:00
parent f08986efd6
commit b4f8e319a7

View file

@ -10,9 +10,11 @@ class AddressListItem extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ConstrainedBox( return Align(
constraints: BoxConstraints(maxHeight: 70, minHeight: 50), alignment: Alignment.center,
child: Container( child: ConstrainedBox(
constraints: BoxConstraints(maxHeight: 70, maxWidth: 600),
child: Container(
padding: EdgeInsets.symmetric(vertical: 6, horizontal: 12), padding: EdgeInsets.symmetric(vertical: 6, horizontal: 12),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(12)), borderRadius: BorderRadius.all(Radius.circular(12)),
@ -22,13 +24,17 @@ class AddressListItem extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
children: [ children: [
AutoSizeText( Expanded(
address, child: FittedBox(
style: TextStyle( fit: BoxFit.contain,
color: Colors.white, child: Text(
fontSize: 15, address,
fontWeight: FontWeight.w600), style: TextStyle(
maxLines: 1, color: Colors.white,
fontWeight: FontWeight.w600,
),
),
),
), ),
if (isChange) if (isChange)
Row( Row(
@ -38,8 +44,7 @@ class AddressListItem extends StatelessWidget {
height: 17, height: 17,
padding: EdgeInsets.only(left: 6, right: 6), padding: EdgeInsets.only(left: 6, right: 6),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: borderRadius: BorderRadius.all(Radius.circular(8.5)),
BorderRadius.all(Radius.circular(8.5)),
color: Colors.white), color: Colors.white),
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
@ -53,7 +58,9 @@ class AddressListItem extends StatelessWidget {
), ),
], ],
), ),
])), ]),
),
),
); );
} }
} }