flutter_sliding_comment_sheet 1.0.0
flutter_sliding_comment_sheet: ^1.0.0 copied to clipboard
A comment sheet that slides up and shrinks the content above it, like TikTok, Instagram Reels and YouTube Shorts.
Changelog #
1.0.0 #
First release.
SlidingCommentSheet, a comment sheet that resizes the content above it instead of covering itSlidingCommentSheetControllerto open and close it, and to follow its position as it moves- Scroll-linked dragging: attach the
ScrollControllerfromsheetBuilderto your list and pulling it down closes the sheet, while pushing up opens the sheet before the list scrolls — one continuous gesture - Drag to dismiss, with a distance threshold and a separate velocity threshold so a flick closes the sheet however far open it is
- Releases settle on a spring carrying the gesture's own momentum
- The sheet is laid out at its full height and clipped as it moves, so its contents translate rather than being squashed, and fixed chrome inside it does not overflow while the sheet is short
initiallyExpandedfor a page that opens straight onto the commentscontentBorderRadius, which rounds the content's corners as the sheet opens and leaves them square while it is closed- Back button closes the sheet before it leaves the page
- Haptic feedback when the sheet settles, and a
semanticLabelplus a dismiss action so screen readers can name and close it - Lifts above the on-screen keyboard
- No dependencies beyond Flutter
