flutter_country_state 0.2.2 flutter_country_state: ^0.2.2 copied to clipboard
A customizable Flutter package that displays all countries with it respective state.
flutter_country_state #
A customizable Flutter package that displays all countries with there respective states.
Example #
Please run the app in the Example folder
Installation #
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
flutter_country_state:
You can also change the style of the text of list of the country and states #
-searchHint
-substringBackground
-textColors
-substringTextColor
-substringFontSize
-fontStyle
Use It #
This will display the countries; You can display the country and state either with bottom sheet or dialog #
ShowMyDialog(
searchHint: 'Search country',
substringBackground: Colors.green,
textColors: Colors.black,
substringTextColor: Colors.white,
fontSize: 18,
substringFontSize: 14,
fontFamily: '',
fontStyle: FontStyle.normal,
)
This will display the states of the country selected #
StateDialog(
substringTextColor: Colors.white,
fontSize: 18,
textColors: Colors.black,
substringFontSize: 14,
fontFamily: '',
fontStyle: FontStyle.normal,
substringBackground: Colors.blueAccent,
),
Next goal #
- [ x ] Add countries flag
- [ x ] Add countries code