sambenko / flutter_country_picker

A Flutter Country Picker Widget with support to country dialing codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pub

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,
       ),
     ),
   );
 }

About

A Flutter Country Picker Widget with support to country dialing codes

License:MIT License


Languages

Language:Dart 88.4%Language:Ruby 5.0%Language:Kotlin 3.0%Language:Swift 2.8%Language:Objective-C 0.8%