The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:
🇧🇷 [pt-BR]
| String _town; | |
| _townField() { | |
| return FormField<String>( | |
| validator: (value) { | |
| if (value == null) { | |
| return "Select your area"; | |
| } | |
| }, | |
| onSaved: (value) { | |
| formData['town'] = value; |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( | |
| title: 'Flutter Demo', | |
| theme: new ThemeData( |
The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:
🇧🇷 [pt-BR]