Home > Software engineering >  Whenever i try to comeback from another screen my keyboard pop up everytime in flutter
Whenever i try to comeback from another screen my keyboard pop up everytime in flutter

Time:03-03

application preview

while cooming back from any screen to homescreen my keyboard pop-ups automatically which makes user experience bad.

Can someone tell me how to deal with this bug.

CodePudding user response:

you can run this code everywhere you change page:

FocusManager.instance.primaryFocus?.unfocus()

github issue

CodePudding user response:

try to remove that you set in textfield as autofocus true.

  • Related