s_sidebar 1.0.2
s_sidebar: ^1.0.2 copied to clipboard
A beautiful, customizable, and responsive sidebar widget for Flutter with smooth animations, badge support, and adaptive layouts.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.2 - 2026-02-05 #
- Minimise button color/shape/size updated
1.0.1 - 2026-02-01 #
- Package Documentation updated
1.0.0 - 2026-01-31 #
Added #
- Initial release of s_sidebar package
- Customizable collapsible sidebar widget for Flutter applications
- Support for minimized and expanded states with smooth animations
- Configurable sidebar items with selected/unselected icons
- Badge support for displaying notifications or counts on menu items
- Tooltip support when sidebar is minimized
- Logo widget support at the top of the sidebar
- Divider option to separate settings item from other items
- Customizable colors for sidebar, icons, text, and background
- Compact mode for reduced spacing between items
- Intelligent layout that adapts to available space
- Automatic height calculation to optimize space usage
- CustomScrollView implementation for efficient scrolling
- Minimize button that stays visible at the bottom
- Responsive design that works with different sidebar heights
- SideBarController for programmatic control
- Support for custom callback when items are tapped
- shouldTapItems parameter to enable/disable specific items
- preSelectedItemIndex to set initial selected item
- Customizable border radius, widths, and item heights
- Customizable horizontal padding, icon-text spacing, and item border radius
- Semantic labels and accessibility support
- Comprehensive test coverage
Features #
- Adaptive Layout: Automatically adjusts button expansion based on available space
- Smooth Animations: Uses AnimatedContainer and AnimatedAlign for fluid transitions
- Flexible Styling: Extensive customization options for colors, sizes, and spacing
- Accessibility: Includes Semantics widgets and tooltip support
- Performance: Efficient rendering with CustomScrollView and slivers
- Developer Experience: Clean API with sensible defaults