Answers for "make text field unfocused till clicked in flutter"

3

flutter unfocus textfield when click outside

return GestureDetector(
      onTap: () => FocusManager.instance.primaryFocus?.unfocus(),
      child: Scaffold(
        appBar: AppBar(
          title: Text('Login'),
        ),
        body: Body(),
      ),
    );
Posted by: Guest on June-18-2021

Code answers related to "make text field unfocused till clicked in flutter"

Browse Popular Code Answers by Language