You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(NavigationView): prevent spurious overlay flash when auto mode resizes from minimal → compact (#1316)
* Initial plan
* fix: NavigationView auto mode no longer shows brief overlay on minimal→compact resize
Root cause: _OpenNavigationPane's AnimatedContainer shared _panelKey with
_CompactNavigationPane. When transitioning from minimal to compact mode,
Flutter's GlobalKey mechanism reused the AnimatedContainer state (width=320)
causing a spurious 320→50 width animation visible as a brief overlay.
Fix:
- Add usePanelKey parameter to _OpenNavigationPane (default true)
- Pass usePanelKey: false in _buildMinimalView to prevent state reuse
- Reset _minimalPaneOpen in _resolveDisplayMode when leaving minimal mode
Also: add tests and update CHANGELOG
Co-authored-by: bdlukaa <45696119+bdlukaa@users.noreply.github.com>
Agent-Logs-Url: https://github.com/bdlukaa/fluent_ui/sessions/a98cf501-1708-4d0d-aa16-0b6a2cc5ec59
* chore: update changelog
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bdlukaa <45696119+bdlukaa@users.noreply.github.com>
Co-authored-by: Bruno D'Luka <brunodlukaa@gmail.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
## 4.15.0
2
2
3
+
- fix: `NavigationView` auto display mode no longer shows a brief overlay when resizing from minimal to compact mode ([#1316](https://github.com/bdlukaa/fluent_ui/pull/1316))
3
4
- fix: `MenuFlyout` no longer throws `TypeError` on sub-items ([#1337](https://github.com/bdlukaa/fluent_ui/issues/1337))
4
5
- fix: `MenuFlyout` sub-item tree now correctly expands to the left and shows a `chevron_left` icon when right-to-left directionality is enabled ([#1342](https://github.com/bdlukaa/fluent_ui/issues/1342))
5
6
- feat: Controls now respond to `VisualDensity` from `FluentThemeData` for compact sizing. Use `FluentThemeData(visualDensity: VisualDensity.compact)` to enable compact mode ([#1175](https://github.com/bdlukaa/fluent_ui/issues/1175))
0 commit comments