adaptive_sidebar 1.1.0 copy "adaptive_sidebar: ^1.1.0" to clipboard
adaptive_sidebar: ^1.1.0 copied to clipboard

Sleak sidebar for responsive Flutter apps with automatic size change.

Changelog #

1.1.0 #

  • Added sidebarShown bool value to pageViewWrapper Widget Function.

1.0.3 #

  • Changed the AdaptiveSidebarController navigateToSidebarIndex to navigateToSidebar so 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

    • AdaptiveSidebarController class for programmatic navigation
    • navigateToBottomNavIndex() method for bottom nav navigation
    • navigateToSidebar() method for key-based sidebar navigation
    • Support for custom bottom navigation bars (CupertinoTabBar, etc.)
  • Enhanced Destination Identification: Required keys for better navigation

    • key property (now required) for unique destination identification
    • Improved onDestinationChanged callback with destination object
    • Better debugging and state management capabilities
  • Advanced Navigation Callbacks:

    • onDestinationChanged callback with bottom nav index and destination
    • onBottomNavTap callback for bottom navigation events
    • Enhanced navigation state tracking

API Changes

  • BREAKING: key property is now required on all SidebarDestination objects
  • BREAKING: pageContent property is now required on all SidebarDestination objects
  • BREAKING: onDestinationChanged callback signature changed to include destination object
  • NEW: controller property for external navigation control
  • NEW: shownInBottomNav and bottomNavOrder properties for selective bottom navigation

Migration Guide

To upgrade from previous versions:

  1. Add key: ValueKey("unique_id") to all SidebarDestination objects
  2. Add pageContent: YourPageWidget() to all SidebarDestination objects
  3. Remove manual PageView handling from your code
  4. Update onDestinationChanged callback 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 withOpacity and updated to use withValues.

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 gap package dependency.

0.0.1 #

  • Initial release
6
likes
160
points
538
downloads

Publisher

verified publisherae1.dev

Weekly Downloads

Sleak sidebar for responsive Flutter apps with automatic size change.

Repository (GitHub)
View/report issues

Topics

#ui #navigation #layout #scaffold

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cupertino_icons, flutter, universal_io

More

Packages that depend on adaptive_sidebar