Search packages, repositories and app categories

Package detailsv1.1.3

slide_container

A container that can be slid vertically and horizontally with a smooth dampened motion. Offers a handful of callbacks for customization.

30-day downloads
36
Likes
28
Pub points
30

Install package

flutter pub add slide_container

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

SlideContainer is a Flutter package that provides a draggable container capable of smooth vertical and horizontal sliding with natural dampened motion. It enhances user interaction by allowing intuitive swiping gestures, ideal for creating interactive UI elements like collapsible panels or swipeable cards. Customizable through various callbacks, it supports dynamic behavior during drag, release, and animation completion. Designed for seamless integration into animations and transitions, it brings fluidity to gesture-based interfaces.

Use cases

  • Interactive collapsible panels
  • Swipeable card interfaces
  • Draggable content containers
  • Gesture-driven UI components
  • Customizable drag-and-release animations

Key features

  • Smooth dampened sliding motion
  • Vertical and horizontal drag support
  • Customizable drag callbacks
  • Fluid gesture response
  • Easy integration with existing widgets

Suitable for

  • Developers building gesture-rich UIs
  • Apps requiring swipeable or draggable elements
  • Projects focused on smooth animations
  • UI designers seeking interactive components
  • Flutter apps with dynamic content layouts

Considerations

  • Limited platform-specific optimizations
  • No built-in snap-to-position logic
  • Requires manual handling of edge cases
  • Not optimized for high-frequency drag events
  • May need additional styling for complex layouts

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Awesome Flutter Dart Pub

Slide Container

A container that can be slid vertically and horizontally with a smooth dampened motion.

Offers a handful of callbacks for customization and handles both drag distance and velocity to validate swipe gestures.

Features a customized GestureDetector to reduce nested GestureDetector conflicts.

Build the example folder with flutter run for a demo, or check the video in this blog post:

https://tengio.com/blog/flutter-slide-container/

Install instructions and doc are available here:

https://pub.dartlang.org/packages/slide_container

Categories

Source repository

Projects using this package

No data available yet.