flutter get user email
i want to get my flutter login form user id into a text box.i used firebase to make authentication. i wrote a method to get user email. _getUserEmail(){ FutureBuilder<FirebaseUser>( future: FirebaseAuth.instance.currentUser(), builder: (BuildContext context, AsyncSnapshot<FirebaseUser> snapshot) { if (snapshot.connectionState == ConnectionState.done) { return new Text(snapshot.data.email); } else { return new Text('Loading...'); } }, ); } i want to get this user email into my flutter textbox view initial value. This is my flutter textbox. ListTile( leading: Icon(Icons.info), title: TextFormField( decoration: InputDecoration( labelText: 'Enter Your name' ), initialValue: _getUserEmail(), onSaved: (val) => item.name = val, validator: (val) => val == "" ? val : null, ), ),...