adaptive_navigation_view 2.0.1
adaptive_navigation_view: ^2.0.1 copied to clipboard
A Flutter package for creating adaptive navigation views that seamlessly adapt to different platforms and devices.
2.0.1 #
Fixed #
- Fixed a visual glitch (jitter/tremor) in the navigation pane when opening in RTL languages (e.g. Arabic, Hebrew). The pane now uses
SlideTransitioninstead ofwidthFactor+Alignto animate, eliminating the coordinate conflict betweenPaneControllerand_NavigationLayoutthat caused the shaking. - Fixed
SizeTransitionin_buildChildrenSectionusing a hardcodedalignment: Alignment.centerLeft, which caused child items to shift horizontally during expand/collapse in RTL mode. Replaced withaxisAlignment: -1.0to animate along the vertical axis only. - Fixed the expand/collapse chevron in RTL mode: rotation direction is now inverted and the icon is mirrored (
keyboard_arrow_left) so it correctly animates from ← to ↓ instead of → to ↓. - Fixed
Stackalignment inPaneItemresolvingAlignmentDirectional.centerStarttoAlignment.centerRightin RTL contexts, preventing item jitter during pane expansion. - Fixed children section being removed from the widget tree immediately when collapsing (via
if (_isExpanded)), which cut off the closing animation. The section is now always present in the tree andSizeTransitionhandles visibility viasizeFactor.
Changed #
- Reorganized README: moved Display Modes section after Installation, added Hierarchical Destinations and Migrating from v1 sections, and relocated Accessing the Controller under Hierarchical Destinations.
- Updated feature description for hierarchical destinations to document the floating popup menu behavior in Medium (compact) mode.
- Added
formatter: trailing_commas: preservetoanalysis_options.yaml.
2.0.0 #
Feat #
- Support for navigation by index or by named path in
PaneItemDestination. You can now use named paths for navigation in your pane destinations:
NavigationPane(
controller: controller,
children: [
PaneItemDestination(
icon: Icon(Icons.home),
label: Text('Home'),
path: '/',
),
PaneItemDestination(
icon: Icon(Icons.person),
label: Text('Profile'),
path: '/profile',
),
],
)
- Support for hierarchical (nested) navigation using
childreninPaneItemDestination. - Documentation and examples for using children (sub-items) in navigation menus.
Changed #
NavigationViewnow requires aNavigationViewControllerto be passed via thecontrollerparameter. The controller is now responsible for handling all navigation state and pane animations.- If a
PaneItemDestinationhas children, it is now only expandable/collapsible and not directly navigable/selectable. Only its children are considered navigable destinations. - Rename
PaneThemeforNavigationTheme,PaneThemeDataforNavigationThemeData.
1.1.1 #
Fixed #
- Fixed a bug in the
NavigationView,PaneControllerandPaneItemDestination. - Fixed memory leak
PaneController.
1.1.0 #
Feat #
- Added
footersproperty to Navigation Pane for displaying additional widgets after the main navigation items. - Added
additionalLendingfeature to Navigation App Bar.
Fixed #
- Fixed a bug in the
PaneController. - Migrates deprecated
MaterialStateandMaterialStatePropertytoWidgetStateandWidgetStateProperty.
1.0.1 #
Fixed #
- Fixed a bug in the Navigation App Bar that affected layout in Compact mode.
- Fixed a bug in the Navigation Pane that prevented correct operation in Compact mode.
1.0.0 #
- Initial release
