title: Flutter - TextField loses value on focus out
body: <p>I have two TextField within a container. The first is defined as <code>TextInputType.text</code> and the second is <code>TextInputType.number</code>. Whenever I change focus (First&lt;>Second or Second&lt;>First), the <code>TextField</code> that loses focus also loses its value.</p>
  
  <p>Strangely, both textFields works if I define both of them as <code>TextInputType.text</code>, if I set one of them as anything but <code>TextInputType.text</code>, both loses the typed value on focus out.</p>
  
  <p>Very annoying. I have no idea why this happens. </p>
  
  <p>It is a Flutter bug or am I doing something wrong?</p>
  
  <p>This is the widget code:</p>
  
  <pre><code>class LoginInput extends StatelessWidget {
    final String hintText;
    final IconData icon;
    final String iconTag;
    final TextEditingController controller;
    final TextInputType inputType;
    final bool obscureText;
  
    LoginInput(this.hintText, this.icon, this.iconTag, this.controller,
        this.inputType, this.obscureText);
  
    @override
    Widget build(BuildContext context) {
      return new Column(children: &lt;Widget&gt;[
        new Container(
            height: 56.0,
            child: new Material(
                borderRadius: BorderRadius.all(Radius.circular(5.0)),
                elevation: 0.0,
                color: Colors.white,
                child: new Container(
                    child: new ListTile(
                  leading: new Hero(
                      tag: iconTag, child: new Icon(icon, color: Colors.black)),
                  title: new TextField(
  
                    keyboardType: inputType,
                    obscureText: obscureText,
                    textInputAction: TextInputAction.send,
                    controller: controller,
                    decoration: new InputDecoration(
                      border: InputBorder.none,
                      hintText: hintText,
                    ),
                    style: new TextStyle(
                        color: Colors.black,
                        fontSize: 18.0,
                        fontFamily: 'Caecilia',
                        fontWeight: FontWeight.w500),
                  ),
                )))),
        new Divider(height: 0.0, color: Theme.of(context).dividerColor),
      ]);
    }
  }
  </code></pre>
  
  <p>This is how is called:</p>
  
  <pre><code>  final LoginInput nameField = new LoginInput("Full name", Icons.face, "leading_icon_name", new TextEditingController(), TextInputType.text,false);
  
    final LoginInput birthField = new LoginInput("Birth date", Icons.date_range, "leading_icon_birth", new TextEditingController(), TextInputType.number, false);
  </code></pre>