material_navigation 0.1.0
material_navigation: ^0.1.0 copied to clipboard
Material 3 Expressive navigation for Flutter: a flexible navigation bar and a navigation rail that expands in place or as a modal, with spring motion.
0.1.0 #
Breaking.
- Migrates to
material_ui. NavigationBarStyleandNavigationRailStyleare nowThemeExtensions with optional tokens, falling back to the Material 3 defaults for the currentColorSchemeandTextTheme. Addsvariant,of,mergeandlerp.- New tokens, including indicator shape, per-state icon and label styles, the
rail's header and item spacing, item heights,
groupAlignmentandscrollable. - Defaults follow the Material 3 tokens: the Expressive springs, an expanded
rail sized to its destinations instead of a fixed 280dp, the rail's header
and item spacing,
onSurfaceVariantfor disabled destinations, no shadow on the bar, and no bold active label in the baseline variant. - Adds
NavigationRail.groupAlignment,NavigationRail.modalMotion,NavigationMotion.defaultSpatialandNavigationMotion.fastSpatial. - Destinations in a rail's
trailingandexpandedBodyslots take the rail's layout and style instead of their own defaults. - Removes
itemVerticalSpace, and the style classes'besideLabelStartanddestinationStylegetters.
0.0.2 #
- Fixes
setState() or markNeedsBuild() called during buildwhen a destination is selected, or the destinations change, whileNavigationRailis open as a modal overlay. The overlay is now built with anOverlayPortal, so it also inherits what the rail inherits (such as a localTheme), and dialogs or routes opened while it is showing now appear above it instead of beneath it. - Fixes
NavigationBarthrowing anArgumentErrorand rendering no destinations when a destination is narrower than 80dp, for example five destinations on a screen under 400dp wide. Destinations now squash to fit.
0.0.1 #
- Initial release.