local_country_picker 1.1.0
local_country_picker: ^1.1.0 copied to clipboard
A self-contained Flutter country picker. 205 countries, bundled flag PNGs (round + rect), EN/NL translations, theme-aware styling. No network calls.
1.1.0 #
- Header redesign: 40h × (16h, 8v outer) padding, 16pt bold title, bundled
SVG back-chevron rendered via
flutter_svgand tinted byiconColor. - Search field redesign: fixed 48px height, 12px radius, 1px border at 10%
of
onSurfaceColor, 14pt text/hint, manual icon spacing for tight contentPadding. - Fix: swapped contents of
assets/flags/round/andassets/flags/rect/— therounddirectory previously held rectangular images and vice versa, makingCountryFlagShape.roundrender as rectangles. This is a visual break for any caller relying on the previous (incorrect) behavior. - Add
flutter_svg ^2.0.0dependency.
1.0.0 #
Stable release. No functional changes from 0.1.0; the API surface is considered stable and future breaking changes will require a major version bump.
0.1.0 #
Initial release.
showCountryPicker(context, ...)returns aCountry(ISO 3166-1 alpha-2 code wrapper).- 205 countries, ISO alpha-2 codes.
- Bundled flag PNGs in two shapes: round and rect.
- Translations: English (
en_US) and Dutch (nl_NL), keyed by ISO code. CountryPickerLocalizations.delegatefor sync access throughMaterialApp.localizationsDelegates. Async self-load fallback when the delegate isn't registered.- Top-level helpers:
countryNameFor(code, {locale})(async) andcountryNameOf(context, code)(sync). - Theme-aware colors via
CountryPickerTheme, withThemeData-backed defaults.
