title: Exception was thrown: FormatException: Invalid radix-10 number
body: <p>I get this error when try to get an integer from <code>TextFormFeild</code>. I have used this widget many times but I did not get this error anytime. Does anybody know what it exactly means? </p>
  
  <p>It will be a great help. The following is just a part of entire (1084 lines)code where I feel the error could be: 
  (Also I have initialized the <code>controller:'bowlerIndexController = new TextEditingController(text: "");'</code>:/)....</p>
  
  <pre><code> void changeBowler(BuildContext context) {
  showDialog(
      context: context,
      builder: (context) {
        return new SimpleDialog(
          title: new Text("Who is bowling next?",
              style:
                  new TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold)),
          children: &lt;Widget&gt;[
            new Column(
              children: List&lt;Widget&gt;.generate(teamBowling.length, (index) {
                return Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: new Row(
                    children: &lt;Widget&gt;[
                      new Padding(
                        padding: new EdgeInsets.all(2.0),
                        child: new Text(
                          (index + 1).toString(),
                          style: new TextStyle(fontSize: 15.0),
                        ),
                      ),
                      new Text(teamBowling[index].player["Name"],
                          style: new TextStyle(
                              fontSize: 18.0, fontWeight: FontWeight.bold))
                    ],
                  ),
                );
              }),
            ),
            new TextFormField(
              keyboardType: new TextInputType.numberWithOptions(
                  signed: false, decimal: false),
              decoration: new InputDecoration(
                  hintText: "Enter the bowler's corresponding number"),
              controller: bowlerIndexController,
            ),
            new RaisedButton(
                child: new Text(
                  "DONE",
                  style: new TextStyle(color: Colors.black),
                ),
                onPressed: () {
                  int a =
                      int.parse(bowlerIndexController.text.toString()) - 2;
                  if (a &gt;= 0 &amp;&amp; a &lt; teamBowling.length) {
                    bowlerIndex = int.parse(bowlerIndexController.toString());
                    Navigator.pop(context);
                  }
                })
          ],
        );
      });
    }
  </code></pre>