Unwanted bouncing effect when opening keyboard on persistent sheet #66
-
Hi ~ @fujidaiti As shown as video I've been encountering some issues with ScrollableSheet ,I'm not sure if it's a bug or a layout problem. Due to certain reasons, I need to have the ScrollableSheet appear in the same layer view using a Stack. However, I've been struggling to find a way to prevent the ScrollableSheet from displaying a spring-like animation when the keyboard opens. I'm seeking advice on how to solve this problem. I've included the code I've been using below for reference. keyboardissue.mp4
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi @Tommy-Wang0602. Are you using the Here's the possible solutions for this case in my mind so far:
Stack(children: [ Scaffold(), YourSheet() ]); Feel free to ask here if you have any question :) |
Beta Was this translation helpful? Give feedback.
-
@fujidaiti very valuable and important info, thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi~ @fujidaiti |
Beta Was this translation helpful? Give feedback.
Hi @Tommy-Wang0602.
Are you using the
MobileCalendarAddItemBottomSheet
inside aScaffold
?If so, that's the problem because the sheet and the
SheetContentScaffold
watch theMediaQueryData.viewInset.bottom
to handle the appearing/disappearing of the keyboard, but theScaffold
consumes theviewInset
resulting in the descendant widgets always gettingviewInset.bottom == 0
.Here's the possible solutions for this case in my mind so far:
Scaffold.resizeToAvoidBottomInset
to false, which prevents theScaffold
from consuming theviewInset
.Scaffold
rather than nesting them.Feel free to ask here if you have any que…