fixed small flags on phones
This commit is contained in:
@@ -26,7 +26,7 @@ class _MyAppState extends State<MyApp> {
|
|||||||
onChanged: print,
|
onChanged: print,
|
||||||
// Initial selection and favorite can be one of code ('IT') OR dial_code('+39')
|
// Initial selection and favorite can be one of code ('IT') OR dial_code('+39')
|
||||||
initialSelection: 'IT',
|
initialSelection: 'IT',
|
||||||
// showCountryOnly: true,
|
showCountryOnly: true,
|
||||||
favorite: ['+39', 'FR']),
|
favorite: ['+39', 'FR']),
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,9 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
.toList()));
|
.toList()));
|
||||||
|
|
||||||
Widget _buildOption(CountryCode e) {
|
Widget _buildOption(CountryCode e) {
|
||||||
return Flex(
|
return Container(
|
||||||
|
width: 400,
|
||||||
|
child: Flex(
|
||||||
direction: Axis.horizontal,
|
direction: Axis.horizontal,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Flexible(
|
Flexible(
|
||||||
@@ -72,15 +74,17 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Flexible(
|
Expanded(
|
||||||
flex: 10,
|
flex: 4,
|
||||||
fit: FlexFit.tight,
|
|
||||||
child: Text(
|
child: Text(
|
||||||
widget.showCountryOnly ? e.toCountryStringOnly() : e.toLongString(),
|
widget.showCountryOnly
|
||||||
|
? e.toCountryStringOnly()
|
||||||
|
: e.toLongString(),
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user