flutter country picker
a flutter co untry 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,
),
),
);
}
Comments are closed.