fixed small flags on phones

This commit is contained in:
Benni Heiss
2019-03-26 11:49:58 +01:00
parent 71ca7a0b34
commit e69dc5e912
2 changed files with 24 additions and 20 deletions

View File

@@ -59,28 +59,32 @@ class _SelectionDialogState extends State<SelectionDialog> {
.toList()));
Widget _buildOption(CountryCode e) {
return Flex(
direction: Axis.horizontal,
children: <Widget>[
Flexible(
child: Padding(
padding: const EdgeInsets.only(right: 16.0),
child: Image.asset(
e.flagUri,
package: 'country_code_picker',
width: 32.0,
return Container(
width: 400,
child: Flex(
direction: Axis.horizontal,
children: <Widget>[
Flexible(
child: Padding(
padding: const EdgeInsets.only(right: 16.0),
child: Image.asset(
e.flagUri,
package: 'country_code_picker',
width: 32.0,
),
),
),
),
Flexible(
flex: 10,
fit: FlexFit.tight,
child: Text(
widget.showCountryOnly ? e.toCountryStringOnly() : e.toLongString(),
overflow: TextOverflow.fade,
Expanded(
flex: 4,
child: Text(
widget.showCountryOnly
? e.toCountryStringOnly()
: e.toLongString(),
overflow: TextOverflow.fade,
),
),
),
],
],
),
);
}