Keyboard is not dismissing correctly in fl;utter using keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
property inside a singleChildScrollview , when drawer is opened.
need to dismiss the keyboard when drawer is opened
https://github.com/flutter/flutter/assets/90414446/911db935-9a95-466d-9d51-26312ad856e3
2
Answers
Have you tried
FocusManager.instance.primaryFocus?.unfocus()
By adding this on drawer open event.
It handles the scenario where the drawer is already open by unfocusing other widgets to avoid conflicts.
if this is not work so use FocusNode like.