I explain to you I am trying at the moment making it compulsory to fill in information sending the information sent via mailer.
If it is possible to have an explanation so that I understand how adding the code to my form works.
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Demande'),
),
body: Container(
color: Color(0xffd8edff),
child: Column(
children: <Widget>[
Padding(
padding: const EdgeInsets.all(8.0),
child: Card(
child: Column(
children: <Widget>[
Padding(
padding: const EdgeInsets.all(15.0),
child: TextFormField(
controller: nomController,
decoration: InputDecoration(
labelText: 'Nom:',
),
),
),
Padding(
padding: const EdgeInsets.all(15.0),
child: TextFormField(
controller: prenomController,
decoration: InputDecoration(
labelText: 'Prénom:',
),
keyboardType: TextInputType.name,
),
),
Padding(
padding: const EdgeInsets.all(15.0),
child: TextFormField(
controller: emailController,
decoration: InputDecoration(
labelText: 'E-mail:',
hintText: 'Ex: [email protected]',
),
),
),
RaisedButton(
onPressed: () async {
showDialog(
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
// return object of type Dialog
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…