title: Flutter how to display datepicker when textformfield is clicked
body: <pre><code>new TextFormField(
      decoration: new InputDecoration(hintText: 'DOB'),
      maxLength: 10,
      validator: validateDob,
      onSaved: (String val) {
          strDob = val;
      },
  ),
  
  Future _selectDate() async {
      DateTime picked = await showDatePicker(
          context: context,
          initialDate: new DateTime.now(),
          firstDate: new DateTime(2016),
          lastDate: new DateTime(2019)
      );
      if(picked != null) setState(() =&gt; _value = picked.toString());
  }
  </code></pre>
  
  <p>I created one textFormField when i click the field i want to display datepicker then i have to select one date from the picker after selecting the date i want to set the selected date in the textFormField.</p>