flutter_country_state 0.1.3 flutter_country_state: ^0.1.3 copied to clipboard
A customizable Flutter package that displays all countries with there respective state.
flutter_country_state #
A package for Flutter with a heart of gold. A customizable Flutter package that displays all countries with there respective state.
show some ❤️ and star the repo to support the project. #
Example #
Please run the app in the Example folder
##Screenshots <img src = "ss1.jpg" height="300em /> <img src = "ss2.jpg" height="300em /> <img src = "ss3.jpg" height="300em /> <img src = "ss4.jpg" height="300em />
Installation #
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
flutter_country_state:
Use It #
import 'package:flutter_country_state/flutter_country_state.dart';
import 'package:flutter_country_state/st.dart';
class Country extends StatefulWidget {
@override
_CountryState createState() => _CountryState();
}
class _CountryState extends State<Country> {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
//This displays the name of the state selected.
Text( Variables.pstate ),
//This displays the name of the country selected
Text( Variables.property_country ),
//Dialog showing all the countries.
Container(child: showCountry(title:'country),),
//Dialog showing the state of the country selected
Container(child: StateDialog(title:'state'),),
],
);
}
}
Check this #
Happy Coding!!!