Flutter: How to Dismiss Keyboard on Tap, on Scroll & when Touched outside?

preview_player
Показать описание
Flutter dismiss keyboard when touched outside of TextField and when scroll down in a scrolling ListView.
We us Flutter focus node for hiding keyboard on scroll or on tap.

#Flutter #Tutorial #HussainHumdani
If you have any question. Please write in the comments!
Рекомендации по теме
Комментарии
Автор

I didn't know it before. Thanks, Hussain Brother for this useful tutorial.

JDMian
Автор

these short feature videos are amazing, thank you!!!

theradioactivemonkey
Автор

Short and very helpful...
Very nice explanation thankyou so much 🙏🏼🙏🏼🙏🏼

someshsahu
Автор

If we add a drawer in that screen, Keyboard automatically popups when we touch the drawer with keybaorddismiss beavour as onDrag is used...any solution related to this ?

subinsaji
Автор

I will subscribe to your channel if you explain me the fisrt case (with textbox). I suspect that you don't unfocus when focusscope has primary focus (and primary focus is textfield). But when you do unfocus... where is primary focus? Because I can see the cursor is still present in the textfield. Can you explain this further? Where primary focus has gone to?

Thank you

mdmarcaassport
Автор

I'm a Beginner Coder, Bro Your Great... Explaining Well... Kindly Make a Tutorial Fully functional with Explaining code...

ashwing
Автор

Just to add an even shorter way you guys could use that I figured out works for me:

GestureDetector(
onTap: () {

},
child: Scaffold(),
)

Adrian-ezkj