refs #60: expose state to let use a key to open the dialog

This commit is contained in:
Salvatore Giordano
2020-04-04 16:25:19 +02:00
parent bb7d3c75c8
commit c74dcf43ca
2 changed files with 9 additions and 12 deletions

View File

@@ -11,11 +11,6 @@ class MyApp extends StatefulWidget {
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return new MaterialApp(
@@ -38,6 +33,7 @@ class _MyAppState extends State<MyApp> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
CountryCodePicker(
key: key,
onChanged: print,
// Initial selection and favorite can be one of code ('IT') OR dial_code('+39')
initialSelection: 'IT',