v4.1.2country_flags
ISO देश कोड से एक झंडा आइकन दिखाने के लिए एक Flutter पैकेज।
राष्ट्रों और भाषाओं के SVG झंडे दिखाने की अनुमति देने वाला आसान उपयोग करने वाला लाइब्रेरी
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Flutter package for displaying the SVG image or the emoji of a country's flag.
The flag can be generated using:
View the complete list of supported countries here.
For a list of supported languages, visit www.lingoes.net/en/translator/langcode.htm (please note that not all language codes on the list are supported).
Simply add country_flags to your pubspec.yaml file.
dependencies:
country_flags: ^4.0.0
fromCountryCode supports 2 and 3 letter country code
CountryFlag.fromCountryCode('ES');
or
CountryFlag.fromCountryCode('ESP');
CountryFlag.fromLanguageCode('en');
CountryFlag.fromCurrencyCode('USD');
CountryFlag.fromPhonePrefix('+34');
CountryFlag.fromLanguageCode(
'en',
theme: const ImageTheme(
width: 120,
height: 80,
),
);
CountryFlag.fromCountryCode(
'ES',
theme: const ImageTheme(
shape: Circle(),
),
);
CountryFlag.fromCountryCode(
'ES',
theme: const ImageTheme(
shape: RoundedRectangle(6),
),
);
CountryFlag.fromCountryCode(
'ES',
theme: EmojiTheme(size: 60),
)
Special thanks to jovial_svg which is utilized to render the SVG images from binary files. Many thanks to bgoncharuck for the implementation.
Acknowledgments to the flag-icons project for providing the necessary SVG flags.
निर्भरता सूची 6 आइटम
^1.19.1{"sdk":"flutter"}^1.1.25{"sdk":"flutter"}^0.15.0>=5.0.0+1 <11.0.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗