-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bottomsheet is overlapped by the keyboard ( Both persistent and modal ) #17861
Comments
Well I found a workaround for this issue |
@thelazyindian Yes, I would love to hear that. |
Basically I used AnimatedPadding inside which Mediaquery viewInsets gets me the required padding after keyboard pops up to push the modalBottomSheet from bottom and thus preventing keyboard from overlapping my modalBottomSheet. Still there's some issue, The word suggestions bar displaying just above keyboard still overlaps bottom sheet lol. Still a better fix is needed. return new AnimatedPadding(
padding: MediaQuery.of(context).viewInsets,
duration: const Duration(milliseconds: 100),
curve: Curves.decelerate,
child: new Container(
alignment: Alignment.bottomCenter,
child: Wrap(
children: <Widget>[
new Text("Blah Blah"),
],
),
),
);
|
Any other solution for this? |
Any news for this? |
I took @thelazyindian approach and did exactly what @iampawan was trying to do: https://github.com/AppleEducate/Tasks on the page: |
Looks like a dup of #18564 (this is older but the other has more activity) |
Dupe of #18564. |
This works correctly. Additionally, to the showModalBottomSheet you must add the isScrollControlled to true. With this, it works wonderfully. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I want to implement something like this . I used modalbottomsheet with a texfield inside that but as soon as I click on it my bottomsheet with height around 100.0 is overlapped by the keyboard . I tried to fix this but couldn't . Please help thanks
The text was updated successfully, but these errors were encountered: