You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title: [iOS] AppBar remains transparent until scrolling, even with explicit backgroundColor
Description
Note: This issue began occurring after I updated Flutter to version 3.27.3.
I'm encountering an issue on iOS where the CupertinoNavigationBar (provided by PlatformAppBar) remains transparent or partially transparent until the user scrolls. Once scrolling begins, the specified background color appears as expected.
I've tried the following, but the issue persists:
Setting a fully opaque backgroundColor directly in the cupertino: (_, __) => CupertinoNavigationBarData(...).
Using transitionBetweenRoutes: false.
Removing extra SafeArea widgets and ensuring no overlapping content.
Confirming I'm not using a large-title CupertinoSliverNavigationBar.
Disabling extendBodyBehindAppBar.
Testing a minimal code snippet with just PlatformScaffold + PlatformAppBar.
Despite all these steps, the bar still appears transparent on the initial frame until the user scrolls.
Screenshots
Here you can see the navigation bar appears transparent at first and After scrolling, it becomes fully colored.
Steps to Reproduce
Create a Flutter project with flutter_platform_widgets (version 7.0.1).
The navigation bar should appear with the specified background color immediately when the page loads—fully opaque and without any translucent effect.
Actual Behavior
On iOS, the navigation bar looks transparent (the list items can be seen behind it) until the user starts to scroll. Once scrolling begins, the navbar background color becomes fully opaque.
The text was updated successfully, but these errors were encountered:
Title:
[iOS] AppBar remains transparent until scrolling, even with explicit backgroundColor
Description
Note: This issue began occurring after I updated Flutter to version
3.27.3
.I'm encountering an issue on iOS where the
CupertinoNavigationBar
(provided byPlatformAppBar
) remains transparent or partially transparent until the user scrolls. Once scrolling begins, the specified background color appears as expected.I've tried the following, but the issue persists:
backgroundColor
directly in thecupertino: (_, __) => CupertinoNavigationBarData(...)
.transitionBetweenRoutes: false
.SafeArea
widgets and ensuring no overlapping content.CupertinoSliverNavigationBar
.extendBodyBehindAppBar
.PlatformScaffold
+PlatformAppBar
.Despite all these steps, the bar still appears transparent on the initial frame until the user scrolls.
Screenshots
Here you can see the navigation bar appears transparent at first and After scrolling, it becomes fully colored.
Steps to Reproduce
Environment
3.27.3
3.6.1
)7.0.1
Expected Behavior
The navigation bar should appear with the specified background color immediately when the page loads—fully opaque and without any translucent effect.
Actual Behavior
On iOS, the navigation bar looks transparent (the list items can be seen behind it) until the user starts to scroll. Once scrolling begins, the navbar background color becomes fully opaque.
The text was updated successfully, but these errors were encountered: