-
Notifications
You must be signed in to change notification settings - Fork 22
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
DraggableSheet moves up when keyboard opens #184
Comments
Hi @faizanje,
This is the intended behavior of the sheet. If you want to keep the current sheet position even when the keyboard opens, wrap your content in a DraggableSheet(
minExtent: minExtent,
controller: _smoothSheetController,
initialExtent: minExtent,
physics: physics,
child: SheetContentScaffold(
body: buildContent(),
),
), Moreover, nesting a sheet in a |
Thank you for your quick response. Wrapping my content in a |
Thank you for your response and the suggestion to use Here is the updated code I used:
|
Screen_recording_20240628_221948.webm |
@fujidaiti Any update on this? |
I noticed that a fix for #14 didn't solve the issue mentioned in this comment. I have created a new issue to track this bug instead of reopening this issue (#192), so please follow up on that. |
Quick & Dirty workaround:
|
I am experiencing an issue with the DraggableSheet. Whenever the keyboard opens, the DraggableSheet always moves up, regardless of the current state or configuration. This behavior is undesirable and disrupts the user experience.
Steps to reproduce:
`import 'package:flutter/material.dart';
import 'package:smooth_sheets/smooth_sheets.dart';
Expected behavior:
The DraggableSheet should stay in its current position when the keyboard opens.
Actual behavior:
The DraggableSheet moves up when the keyboard opens.
Screen_recording_20240628_043148.webm
The text was updated successfully, but these errors were encountered: