adaptive_sidebar 1.1.0
adaptive_sidebar: ^1.1.0 copied to clipboard
Sleak sidebar for responsive Flutter apps with automatic size change.
Changelog #
1.1.0 #
- Added
sidebarShownbool value topageViewWrapperWidget Function.
1.0.3 #
- Changed the AdaptiveSidebarController
navigateToSidebarIndextonavigateToSidebarso you navigate by key instead of index.
1.0.2 #
- Added helpful warning when bottom navigation bar is provided but no destinations have
shownInBottomNav: true. - Fixed bottom navigation tap handling by improving destination key matching logic.
1.0.1 #
- Updated minimum Flutter version to 1.34.0.
1.0.0 #
Major Release - Complete Navigation System Overhaul #
This is a major release that transforms the AdaptiveSidebar into a complete navigation system with internal page management, selective bottom navigation, and external control capabilities.
New Features
-
Internal Page Management: Built-in PageView system for seamless navigation
-
Selective Bottom Navigation: Choose which destinations appear in bottom nav
-
External Navigation Control: Controller API for custom navigation widgets
AdaptiveSidebarControllerclass for programmatic navigationnavigateToBottomNavIndex()method for bottom nav navigationnavigateToSidebar()method for key-based sidebar navigation- Support for custom bottom navigation bars (CupertinoTabBar, etc.)
-
Enhanced Destination Identification: Required keys for better navigation
keyproperty (now required) for unique destination identification- Improved
onDestinationChangedcallback with destination object - Better debugging and state management capabilities
-
Advanced Navigation Callbacks:
onDestinationChangedcallback with bottom nav index and destinationonBottomNavTapcallback for bottom navigation events- Enhanced navigation state tracking
API Changes
- BREAKING:
keyproperty is now required on all SidebarDestination objects - BREAKING:
pageContentproperty is now required on all SidebarDestination objects - BREAKING:
onDestinationChangedcallback signature changed to include destination object - NEW:
controllerproperty for external navigation control - NEW:
shownInBottomNavandbottomNavOrderproperties for selective bottom navigation
Migration Guide
To upgrade from previous versions:
- Add
key: ValueKey("unique_id")to all SidebarDestination objects - Add
pageContent: YourPageWidget()to all SidebarDestination objects - Remove manual PageView handling from your code
- Update
onDestinationChangedcallback to use new signature
0.9.0 #
- Added support setting an initial index with
initialIndex.
0.8.0 #
- Added support for trailing icon buttons with
DestinationTrailingIconButton.
0.7.0 #
- Updated README with a better description.
- Removed usage of
withOpacityand updated to usewithValues.
0.6.3 #
- Fixed destinations not using the full sidebar width.
0.6.2 #
- Fixed some overflow issues on resize to icon only.
- Updated example project.
- Updated README with example photo.
0.6.1 #
- Added floatingShadow option for the floating sidebar style.
0.6.0 #
- Added destinationsTextStyle and selectedColor options.
0.5.1 #
- Fixes tooltip error when not on the icon only mode.
0.5.0 #
- Added destination tooltip on icon only mode (uses the label string).
0.4.1 #
- Some pubspec.yaml changes for pub.flutter-io.cn page.
0.4.0 #
- Added support for adding a background widget [optional].
0.3.1 #
- Updated README.md wording and package description.
0.3.0 #
- Added support for the bottomNavigationBar [optional].
- BREAKING CHANGE: Changed child field to body.
0.2.2 #
- Added example project folder.
0.2.1 #
- Added medium layout manual button.
0.2.0 #
- Added medium layout support that only shows destination icons.
0.1.0 #
- Added floating sidebar style.
- Removed
gappackage dependency.
0.0.1 #
- Initial release