title: getSelectedText on inactive InputConnection flutter
body: <p>I have this weird problem,When i try to enter value to textfield the keyboard comes up when i try to type the the keyboard  goes away , i am also doing fill up Username,Place,mobile that i fetching from sharedprefrence and  it's working,but when i try to enter age,height,weight  keyboard comes up &amp; goes with in seconds,this is the error/warning i am getting,there is no problem in flutter doctor,</p>
  
  <pre><code>W/IInputConnectionWrapper(23904): getSelectedText on inactive InputConnection
  W/IInputConnectionWrapper(23904): getTextAfterCursor on inactive InputConnection
  W/IInputConnectionWrapper( 8756): beginBatchEdit on inactive InputConnection
  W/IInputConnectionWrapper( 8756): endBatchEdit on inactive InputConnection
  </code></pre>
  
  <p>Code &amp; View</p>
  
  <pre><code>class RegistrationScreenState extends State&lt;RegistrationScreen&gt; {
  
   TextEditingController mobile = TextEditingController();
    TextEditingController Username = TextEditingController();
    TextEditingController Place = TextEditingController();
    TextEditingController age = TextEditingController();
    TextEditingController height = TextEditingController();
    TextEditingController weight = TextEditingController();
  
    void initState() {
      getDetails();
  
    }
  
    @override
    Widget build(BuildContext context) {
      Size size = MediaQuery
          .of(context)
          .size;
      return Scaffold(
        appBar: AppBar(
          title: Text("Registration", style: TextStyle(color: Colors.black)),
          backgroundColor: Colors.orange,
        ),
        body: SingleChildScrollView(
          child: Stack(
            children: [
              Column(
                children: [
                  Container(
                    child: Image.asset('assets/images/gym.png',
                        height: 150,
                        width: double.infinity,
                        fit: BoxFit.fitWidth),
                  ),
                  SizedBox(
                    height: 50,
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                    children: &lt;Widget&gt;[
                      Expanded(
                        child: Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: TextField(
                            controller: Username,
                            decoration: InputDecoration(
                              prefixIcon: Icon(Icons.perm_identity),
                            ),
                          ),
                        ),
                      ),
                      Expanded(
                        child: Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: TextField(
                            controller: mobile,
                            decoration: InputDecoration(
                              prefixIcon: Icon(Icons.mobile_screen_share),
                            ),
                          ),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.all(8.0),
                    child: Align(
                        alignment: Alignment.centerLeft,
                        child: Text(
                          "User Information",
                          style: TextStyle(
                              fontSize: 15, fontWeight: FontWeight.bold),
                        )),
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                    children: &lt;Widget&gt;[
                      Expanded(
                        child: Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: TextField(
                            controller: Place,
                            decoration: InputDecoration(),
                          ),
  
                        ),
                      ),
                      Expanded(
                        child: Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: TextField(
                            controller: age,
                            decoration: InputDecoration(
                              hintText: 'Age',
                            ),
                          ),
                        ),
                      ),
                    ],
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                    children: &lt;Widget&gt;[
                      Expanded(
                        child: Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: TextField(
                            controller: height,
                            decoration: InputDecoration(
                              hintText: 'Height(in cm)',
                            ),
                          ),
                        ),
                      ),
                      Expanded(
                        child: Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: TextField(
                            controller: weight,
                            decoration: InputDecoration(
                              hintText: 'Weight(in kg)',
                            ),
                          ),
                        ),
                      ),
                    ],
                  ),
                ],
              ),
            ],
          ),
        ),
      );
    }
  
  
    //  get &amp; fill Shareprefrece data to textfield
    getDetails() async {
      Future user = SharedPrefrence().getUserMobile();
      Future name = SharedPrefrence().getUserName();
      Future place = SharedPrefrence().getUserPlace();
  
      user.then((data) async {
        var mobile_no = data;
        setState(() {
          if (mobile_no.isNotEmpty) {
            mobile.text = mobile_no;
          }
          else
            {
              mobile.text = "";
            }
        });
      });
  
      name.then((data) async {
        var user_name = data;
        setState(() {
          if (user_name.isNotEmpty) {
            Username.text = user_name;
          }
        });
      });
  
      place.then((data) async {
        var user_place = data;
        setState(() {
          if (user_place.isNotEmpty) {
            Place.text = user_place;
          }
        });
      });
    }
  
  
  
  }
  </code></pre>