Answers for "flutter unfocus textfield when click outside"

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 "flutter unfocus textfield when click outside"

Browse Popular Code Answers by Language