fix(material): keep navigation tint continuous through system inset

This commit is contained in:
zarzet
2026-09-27 18:18:19 +07:00
parent 3980f1f851
commit c2eab0da51
2 changed files with 90 additions and 1 deletions
+2 -1
View File
@@ -34,6 +34,7 @@ class ExpressiveNavigationBar extends StatelessWidget {
return MaterialExpressiveScope(
child: ColoredBox(
color: backgroundColor,
// Paint the tint once across both the controls and system gesture area.
// Use the app's scaled MediaQuery insets, rather than raw view metrics.
child: SafeArea(
top: false,
@@ -44,7 +45,7 @@ class ExpressiveNavigationBar extends StatelessWidget {
autoLayout: false,
safeArea: false,
padding: EdgeInsets.zero,
backgroundColor: backgroundColor,
backgroundColor: Colors.transparent,
destinations: [
for (final destination in destinations)
_NavigationDestination(