brazilian_locations 3.0.0 copy "brazilian_locations: ^3.0.0" to clipboard
brazilian_locations: ^3.0.0 copied to clipboard

Flutter package to display list of States and Cities from Brazil.

Flutter Brazilian Locations From Guilherme Queiroz

Pub package GitHub starts pub package

Flutter package to display list of States and Cities from Brazil. Brazilian Locations you can build highly customizable input, that your designers can't even draw in Figma 🤭

How to Use #

To use this Package, add brazilian_locations as a dependency in your pubspec.yaml.

  BrazilianLocations(
    showStates: true,
    showCities: true,
    stateDropdownLabel: "State",
    cityDropdownLabel: "City",
    stateSearchPlaceholder: "State",
    citySearchPlaceholder: "City",
    onStateChanged: (value) {
      if (value != null) {
        setState(() => stateValue = value);
      }
    },
    onCityChanged: (value) {
      if (value != null) {
        setState(() => cityValue = value);
      }
    },
  );

you will get feedback in onChanged functions

Parameters #

ParametersTypeDescription
showStatesBoolean Enable disable States dropdown (true / false)
showCitiesBoolean Enable disable Cities dropdown (true / false)
dropdownDecorationBoxDecorationDropdown box decoration to style your dropdown selector [OPTIONAL PARAMETER] (USE with disabledDropdownDecoration)
disabledDropdownDecorationBoxDecorationDisabled Dropdown box decoration to style your dropdown selector [OPTIONAL PARAMETER] (USE with disabled dropdownDecoration)
selectedItemStyleTextStyleTo change selected item style
dropdownHeadingStyleTextStyleTo change DropdownDialog Heading style
dropdownItemStyleTextStyleTo change DropdownDialog Item style
dropdownDialogRadiusdoubleTo change DropdownDialogBox radius
searchBarRadiusdoubleTo change search bar radius
stateSearchPlaceholderStringPlaceholder for state search field
citySearchPlaceholderStringPlaceholder for city search field
stateDropdownLabelStringLabel/Title for state dropdown
cityDropdownLabelStringLabel/Title for city dropdown

Support #

Guilherme Queiroz Ribeiro

Don't forget to give it a star ⭐

11
likes
0
points
194
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package to display list of States and Cities from Brazil.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, plugin_platform_interface

More

Packages that depend on brazilian_locations