Skip to content

Flag image #68

Jan 13, 2021 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

@ashishgkwd534
The package use emoji to show the flags (not images) you can get the flags emoji with Utils.countryCodeToEmoji(country.countryCode;

Example:

import 'package:country_picker/src/utils.dart';

Text(
     Utils.countryCodeToEmoji(country.countryCode),
     style: const TextStyle(fontSize: 25),
 );

Note that Utils is not expose to the package so you have to import it: import 'package:country_picker/src/utils.dart';

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@abhinandval
Comment options

@Daniel-Ioannou
Comment options

Answer selected by Daniel-Ioannou
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Daniel-Ioannou
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation question Further information is requested
5 participants
Converted from issue

This discussion was converted from issue #10 on February 11, 2022 11:52.