Code Monkey home page Code Monkey logo

country_state_city_picker's People

Contributors

amitsingh6391 avatar essangjesse avatar leonardobahar avatar mthokozisimtolo avatar prof22 avatar vrajshah24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

country_state_city_picker's Issues

Mounted state check

Is it possible to add a if(!mounted) return; check before making calls to all instances of setState()? This would prevent an exception being thrown if the Widget is disposed before the data is loaded from the JSON file.

Example:
If you have two Bottom Navs where the first will display the Country State City Picker and the second will load a different display. Navigating quickly from the Country State City Picker (before it completes loading the Countries) to the second display will throw an exception.

Default Value Suggestion Change

image

class SelectState extends StatefulWidget {
final ValueChanged onCountryChanged;
final ValueChanged onStateChanged;
final ValueChanged onCityChanged;
final TextStyle? style;
final Color? dropdownColor;
final String? city;
final String? state;
final String? country;

const SelectState(
{Key? key,
required this.onCountryChanged,
required this.onStateChanged,
required this.onCityChanged,
this.style,
this.dropdownColor,
this.city, this.country, this.state})
: super(key: key);

@OverRide
_SelectStateState createState() =>
_SelectStateState(this.city, this.state, this.country);
}

class _SelectStateState extends State {
List _cities = ["Choose City"];
List _country = ["Choose Country"];
String _selectedCity = "Choose City";
String _selectedCountry = "Choose Country";
String _selectedState = "Choose State";
List _states = ["Choose State"];
var responses;

_SelectStateState(String? city, String? state, String? country) {
_selectedCity = widget.city ?? "Choose City";
_selectedCountry = widget.country ?? "Choose Country";
_selectedState = widget.state ?? "Choose State";
}

@OverRide
void initState() {
getCounty();
super.initState();
}

Allow customization of "State" text

A lot of countries have provinces instead of states, so this selector isn't accurate for a lot of countries on the list. I think it would be beneficial if developers could change the text from "Choose State" to "Choose Province" depending on the country selected. At the very least, it could say "Choose State/Province" instead.

dropdownColor no longer taken into account

The latest commit that added the search box is not very customizable and doesn't fit anything more than a generic example app as far as styling options go. At the bare minimum I think we should be able to change the background color, and text size/colors of the new picker.

Latest Source Not in Pub.Dev

Good day.

When will the updated 1.2.7 version of the release be pushed to pub.dev? The latest up is 1.2.6, prior to the customizable dropdown.

Best regards

Some Cities are not completed and the widget is not customizable

Some of your cities aren't complete like in the case of Nigeria(country) Rivers State(State) and it's cities are not completed

And also the widget isn't customizable like if someone wanted to add a bigger font size or change the appearance of the dropdownbutton, the person can't do that, please can you fix this issues.

Text overflow in listview

Some texts are too long to fit into the listview unless using small fonts as primary. I think the listview should have ways to deal with this via wrapping or cropping at least in order to make the library more functional for a wide variety of applications.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.