Skip to content

Commit

Permalink
fix: Change NavigationAppBar leading widget to be min width instead o…
Browse files Browse the repository at this point in the history
…f fixed width (#1103)
  • Loading branch information
bdlukaa committed Aug 25, 2024
2 parents b464d7b + 1a9f654 commit e7ad25d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.9.2

- feat: `NavigationAppBar` `leading` widget is now a minimum of `kCompactNavigationPaneWidth` width instead of being fixed to this width ([#1103](https://github.com/bdlukaa/fluent_ui/pull/1103))

## 4.9.1

- feat: ¹ `NumberBox` now supports precision greater than 4. ² Add `NumberBox.pattern`, `NumberBox.formatter`, `NumberBox.format` ([#1080](https://github.com/bdlukaa/fluent_ui/pull/1080))
Expand Down
5 changes: 4 additions & 1 deletion lib/src/controls/navigation/navigation_view/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,10 @@ class NavigationAppBar with Diagnosticable {
} else {
return const SizedBox.shrink();
}
widget = SizedBox(width: kCompactNavigationPaneWidth, child: widget);
widget = ConstrainedBox(
constraints:
const BoxConstraints(minWidth: kCompactNavigationPaneWidth),
child: widget);
return widget;
});
}
Expand Down

0 comments on commit e7ad25d

Please sign in to comment.