Refs #6: use custom png flags

This commit is contained in:
Salvatore Giordano
2018-07-14 16:45:13 +02:00
parent 79a90cecf2
commit c413aa1f96
260 changed files with 270 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ class _SelectionDialogState extends State<SelectionDialog> {
padding: const EdgeInsets.only(right: 16.0),
child: Image.asset(
f.flagUri,
package: 'country_icons',
package: 'country_code_picker',
width: 32.0,
),
),
@@ -65,6 +65,7 @@ class _SelectionDialogState extends State<SelectionDialog> {
..add(new Divider())),
]..addAll(showedElements
.map((e) => new SimpleDialogOption(
key: Key(e.toLongString()),
child: Flex(
direction: Axis.horizontal,
children: <Widget>[
@@ -73,7 +74,7 @@ class _SelectionDialogState extends State<SelectionDialog> {
padding: const EdgeInsets.only(right: 16.0),
child: Image.asset(
e.flagUri,
package: 'country_icons',
package: 'country_code_picker',
width: 32.0,
),
),