A Flutter Country Picker Widget with support to country dialing codes

admin

A Flutter Country Picker Widget with support to country dialing codes

flutter_country_picker

A Flutter Country Picker Widget with support to country dialing codes

Usage

Add the CountryPicker widget in your layout and use the onChanged callback.
Full example

 @override
 Widget build(BuildContext context) {
   return new Scaffold(
     appBar: new AppBar(
       title: Text('Flutter Country Picker Demo'),
     ),
     body: new Center(
       child: CountryPicker(
         onChanged: (Country country) {
           setState(() {
             _selected = country;
           });
         },
         selectedCountry: _selected,
       ),
     ),
   );
 }

Next Article : https://flutterappdev.com/2019/02/26/flutter-tags-let-you-create-a-list-of-tags-or-insert-them-dynamically/

Credit (github url) : https://github.com/biessek/flutter_country_picker

Leave a Comment