adaptive_scaffold_router 0.3.1
adaptive_scaffold_router: ^0.3.1 copied to clipboard
Adaptive navigation scaffold for Material 3 — drop-in successor to flutter_adaptive_scaffold with first-class go_router support and state preservation.
0.3.1 #
Documentation and screenshots, no code changes.
- Add a How it works table to the README mapping each breakpoint to its
navigation, including the
permanentDraweroverride. - Regenerate the desktop screenshot with
permanentDrawer: trueso the v0.3.0 drawer is now shown (phone and tablet screenshots refreshed for consistency), and update the screenshot caption andpubspecdescription to match.
0.3.0 #
Completes the Material 3 adaptive navigation progression, backward-compatible (no breaking changes).
- Permanent navigation drawer on desktop. New
permanentDrawerflag onAdaptiveScaffold(andAdaptiveNavigationShell) renders a persistentNavigationDraweras the primary navigation at the large and extra-large breakpoints, instead of the extended rail — the widest tier of the Material 3 progression (bottom bar → rail → drawer). The medium and medium-large breakpoints keep the rail. AdaptiveScaffold.standardDrawerhelper. Builds a width-boundedNavigationDrawerfrom a list ofNavigationDestinations, with optionalleading/trailingheader and footer slots (neither affects the selected index).- Branch state is still preserved across every breakpoint — resizing between the rail and the drawer never rebuilds the body.
- Example now enables
permanentDrawer: true. New tests for the drawer helper, the breakpoint switch, the shell pass-through and state preservation (24 tests total).
0.2.0 #
Adds navigation customization, all backward-compatible (no breaking changes).
- Cupertino / platform-adaptive bottom bar. New
bottomNavigationBuilderonAdaptiveScaffold(andAdaptiveNavigationShell) swaps the small-breakpoint bar — plug in aCupertinoTabBarvia the newAdaptiveScaffold.cupertinoTabBarhelper, or setcupertino: trueon the shell. - Badges. Documented and tested: compose a Material
Badgeinto a destination's icon; it renders in both the bottom bar and the rail. - Rail header / footer. Documented
leadingExtendedNavRail/leadingUnextendedNavRail(header) andtrailingNavRail(footer). - Example now showcases badges, a rail header/footer, and a platform-adaptive bottom bar. New tests for all of the above (15 tests total).
0.1.0 #
Initial release.
A drop-in successor to the discontinued flutter_adaptive_scaffold, with the
structural gaps the original left open now solved.
- Drop-in core.
AdaptiveScaffold,AdaptiveLayout,SlotLayout,BreakpointandBreakpointsare API-compatible withflutter_adaptive_scaffold0.3.x — migrate by changing the import. - First-class
go_routerintegration. NewAdaptiveNavigationShellwiresStatefulShellRoute.indexedStackinto an adaptive layout in a few lines. - State preservation across breakpoints. Resizing between phone, tablet and desktop widths swaps only the navigation chrome (bar ↔ rail ↔ drawer); the body subtree — and every branch's scroll position, form input and in-memory state — is kept alive.
- Sound null safety, Material 3, supports Flutter 3.22+.
