-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Closed
Copy link
Labels
r: solvedIssue is closed as solvedIssue is closed as solved
Description
Steps to Reproduce
- Put
keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDragin aSingleChildScrollView, which hasTextFieldamong the children. - Tap on the
TextFieldto focus on it. - Dismiss the keyboard by scrolling the page
- Open the drawer
Expected results:
When the drawer is opened, keyboard stays there
Actual results:
Keyboard pops out
IMG_4871.mp4
Similar Issue
#54277: This gives the solution to dismiss the keyboard properly, and I think the proper way of dismissing it is not applied on SingleChildScrollView's .onDrag code.
Code sample
return Scaffold(
appBar: AppBar(),
drawer: Drawer(),
body: SingleChildScrollView(
keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
child: SafeArea(
child: Column(
children: [
TextFormField(),
],
),
),
),
);
Logs
Metadata
Metadata
Assignees
Labels
r: solvedIssue is closed as solvedIssue is closed as solved