after updating Flutter on 14-Dec-2024 to version 3.27.0, this happens
<code>keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
</code>
<code>keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
</code>
keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
this line inside SingleChildScrollView always dismiss the keyboard without scrolling the UI
I noticed this line is removed in single_child_scroll_view.dart file at line #279
<code>notification.dragDetails != null &&
</code>
<code>notification.dragDetails != null &&
</code>
notification.dragDetails != null &&
see this video. https://www.veed.io/view/968e92cd-23e1-4c68-9895-a3aed846c8e8?panel=share&sharingWidget=true
any idea what to do now?
2
below code can work same as scrollview’s onDrag behaviours
<code>GestureDetector(
onTap: () => FocusScope.of(context).unfocus(),
onVerticalDragDown: (_) => FocusScope.of(context).unfocus(),
child: SingleChildScrollView());
</code>
<code>GestureDetector(
onTap: () => FocusScope.of(context).unfocus(),
onVerticalDragDown: (_) => FocusScope.of(context).unfocus(),
child: SingleChildScrollView());
</code>
GestureDetector(
onTap: () => FocusScope.of(context).unfocus(),
onVerticalDragDown: (_) => FocusScope.of(context).unfocus(),
child: SingleChildScrollView());