Skip to content

Commit 816deb6

Browse files
committed
chore(release): bump version to 7.20.0
1 parent 0954f67 commit 816deb6

4 files changed

Lines changed: 24 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [7.20.0] - 2026-04-20
2+
3+
### Added
4+
5+
* **New `useSafeArea` option on `NavigationHubLayout.journey()`** - Controls whether journey content is wrapped in a `SafeArea`. Defaults to `true` (existing behavior). Set to `false` for edge-to-edge journey pages where backgrounds should extend under system UI (status bar, home indicator)
6+
17
## [7.19.0] - 2026-04-12
28

39
### Changed (BREAKING)

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ packages:
483483
path: ".."
484484
relative: true
485485
source: path
486-
version: "7.18.1"
486+
version: "7.20.0"
487487
objective_c:
488488
dependency: transitive
489489
description:

lib/widgets/src/navigation_hub/navigation_hub.dart

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,19 +441,20 @@ abstract class NavigationHub<T extends StatefulWidget> extends NyPage<T> {
441441
],
442442
);
443443

444+
Widget body = (_layout?.useSafeArea ?? true)
445+
? SafeArea(child: content)
446+
: content;
447+
444448
if (_layout?.backgroundGradient != null) {
445449
return Scaffold(
446450
body: Container(
447451
decoration: BoxDecoration(gradient: _layout?.backgroundGradient),
448-
child: SafeArea(child: content),
452+
child: body,
449453
),
450454
);
451455
}
452456

453-
return Scaffold(
454-
backgroundColor: _layout?.backgroundColor,
455-
body: SafeArea(child: content),
456-
);
457+
return Scaffold(backgroundColor: _layout?.backgroundColor, body: body);
457458
}
458459

459460
/// Build the tab icon
@@ -726,6 +727,15 @@ class NavigationHubLayout {
726727
/// Individual tabs can override this via [NavigationTab.journey(progressStyle: ...)].
727728
JourneyProgressStyle? progressStyle;
728729

730+
/// Whether to wrap journey content in a [SafeArea].
731+
///
732+
/// When `true` (default), content is inset from system UI (status bar,
733+
/// home indicator). Set to `false` for edge-to-edge journey pages where
734+
/// a background should extend under system UI.
735+
///
736+
/// Only applies to [NavigationHubLayout.journey].
737+
bool? useSafeArea;
738+
729739
/// Custom builder for complete control over the bottom navigation bar.
730740
///
731741
/// When provided, this builder receives [NavBarData] containing the
@@ -814,6 +824,7 @@ class NavigationHubLayout {
814824
this.backgroundColor,
815825
this.backgroundGradient,
816826
this.progressStyle,
827+
this.useSafeArea = true,
817828
}) {
818829
kind = "journey";
819830
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nylo_support
22
description: Support library for the Nylo framework. This library supports routing, widgets, localization, cli, storage and more.
3-
version: 7.19.0
3+
version: 7.20.0
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/support/tree/7.x
66
issue_tracker: https://github.com/nylo-core/support/issues

0 commit comments

Comments
 (0)