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

@@ -25,7 +25,7 @@ class CountryCodePicker extends StatefulWidget {
name: s['name'],
code: s['code'],
dialCode: s['dial_code'],
flagUri: 'icons/flags/${s['code'].toLowerCase()}.png',
flagUri: 'flags/${s['code'].toLowerCase()}.png',
))
.toList();
@@ -51,7 +51,7 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
padding: const EdgeInsets.only(right: 16.0),
child: Image.asset(
selectedItem.flagUri,
package: 'country_icons',
package: 'country_code_picker',
width: 32.0,
),
),