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