Skip to content

Commit 08386fd

Browse files
authored
fix: NavigationView transition when in top mode (#1220)
2 parents f0c785f + 23074c8 commit 08386fd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## [next]
22

3+
- fix: NavigationView transition when in top ([#1220](https://github.com/bdlukaa/fluent_ui/pull/1220))
34
- feat: Added `CalendarView` widget ([#1232](https://github.com/bdlukaa/fluent_ui/pull/1232) thanks to [@asmitta-01](https://github.com/Asmitta-01), [#236](https://github.com/bdlukaa/fluent_ui/issues/236))
45
- feat: Added `CalendarDatePicker` ([#236](https://github.com/bdlukaa/fluent_ui/issues/236))
56
- feat: Added `WindowsIcon` and `WindowsIcons` ([#1237](https://github.com/bdlukaa/fluent_ui/pull/1237))

lib/src/controls/navigation/navigation_view/body.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ class _NavigationBodyState extends State<_NavigationBody> {
122122
if (isTop) {
123123
// Other transtitions other than default is only applied to top nav
124124
// when clicking overflow on topnav, transition is from bottom
125-
// otherwise if prevItem is on left side of nextActualItem, transition is from left
126-
// if prevItem is on right side of nextActualItem, transition is from right
125+
// otherwise if prevItem is on right side of nextActualItem, transition is from left
126+
// if prevItem is on left side of nextActualItem, transition is from right
127127
// click on Settings item is considered Default
128128
return HorizontalSlidePageTransition(
129129
animation: animation,
130-
fromLeft: view.previousItemIndex < (view.pane?.selected ?? 0),
130+
fromLeft: view.previousItemIndex > (view.pane?.selected ?? 0),
131131
child: child,
132132
);
133133
}

0 commit comments

Comments
 (0)