When create custom picker flag image can't be accesses #86
Comments
hey @areejmayadeh, you could follow steps. steps: like this ...
4- in
Note : |
thanks @Abdullah-Zakhoi |
Hm... I've the same problem as the OP. As far as I understand it, the OP didn't want do add a new country, like the answer describes it. He (and I) simply wanted to know how to access the image of the flag. I also tried with:
And get a "Unable to load asset: package:country_code_picker/flags/us.png" error.... |
OK, found it. It works with:
|
builder: (CountryCode) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(CountryCode.code),
Image.asset(CountryCode.flagUri),
Icon(Icons.arrow_drop_down)
]);
},
flutter: Another exception was thrown: Unable to load asset: flags/jo.png
The text was updated successfully, but these errors were encountered: