How to hide soft input keyboard on flutter after clicking outside TextField/anywhere on screen?

Posted by Editorial Staff | Updated on

In this example, we will learn how to hide soft input keyboard on flutter after clicking outside TextField/anywhere on screen. You are doing it in wrong way, just try this simple method to hide soft keyboard. you just need to wrap you whole screen in GestureDetector method and onTap method write this code.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers