flutter_sliding_comment_sheet 1.0.0 copy "flutter_sliding_comment_sheet: ^1.0.0" to clipboard
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 it
  • SlidingCommentSheetController to open and close it, and to follow its position as it moves
  • Scroll-linked dragging: attach the ScrollController from sheetBuilder to 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
  • initiallyExpanded for a page that opens straight onto the comments
  • contentBorderRadius, 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 semanticLabel plus a dismiss action so screen readers can name and close it
  • Lifts above the on-screen keyboard
  • No dependencies beyond Flutter
9
likes
160
points
114
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A comment sheet that slides up and shrinks the content above it, like TikTok, Instagram Reels and YouTube Shorts.

Repository (GitHub)
View/report issues

Topics

#comment-sheet #tiktok #instagram #reels #social-media

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_sliding_comment_sheet