diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bea2a654..20beecb19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Date format: DD/MM/YYYY - When a suggestion is picked, the overlay is automatically closed and the text box is unfocused - Clear button now only shows when the text box is focused - Add directionality support ([#184](https://github.com/bdlukaa/fluent_ui/pull/184)) +- Ensure `NavigationAppBar.actions` are rendered on the top of the other widgets ([#177](https://github.com/bdlukaa/fluent_ui/issues/177)) ## [3.9.0] - Fidelity - [10/02/2022] diff --git a/example/lib/main.dart b/example/lib/main.dart index c1dbde4e9..64ee25fd7 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -122,7 +122,6 @@ class _MyHomePageState extends State { final appTheme = context.watch(); return NavigationView( appBar: NavigationAppBar( - // height: !kIsWeb ? appWindow.titleBarHeight : 31.0, title: () { if (kIsWeb) return const Text(appTitle); return MoveWindow( diff --git a/lib/src/controls/navigation/navigation_view/view.dart b/lib/src/controls/navigation/navigation_view/view.dart index 35626c6f1..d7760d7ae 100644 --- a/lib/src/controls/navigation/navigation_view/view.dart +++ b/lib/src/controls/navigation/navigation_view/view.dart @@ -678,6 +678,11 @@ class _NavigationAppBar extends StatelessWidget { ? _kCompactNavigationPanelWidth : _kOpenNavigationPanelWidth; result = Stack(children: [ + Row(children: [ + leading, + if (additionalLeading != null) additionalLeading!, + Expanded(child: title), + ]), if (appBar.actions != null) Positioned.directional( textDirection: direction, @@ -690,11 +695,6 @@ class _NavigationAppBar extends StatelessWidget { child: appBar.actions!, ), ), - Row(children: [ - leading, - if (additionalLeading != null) additionalLeading!, - Expanded(child: title), - ]), ]); break; default: