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
{{ message }}
Repository navigation
AppBar with a TabBar doesn't use appropriate tab label color #103642
TabBar icons should use a contrasting color with the appbar background so they are visible
When a child TabBarView is scrolled under the AppBar, the AppBar should raise its elevation and use its tint color. This works when the child is not a TabBarView
Actual results:
With Material 3 enabled on a light theme, the AppBar:
Defaults to a white icon on a white background
Does not change its elevation or tint, so it's difficult to see that something has scrolled under it.
This is a modification of one of the TabBar examples from the official docs. For some reason, DartPad seems to hang/crash when attempting to scroll the first tab, but it reproduces just fine on an Android emulator.
changed the title [-]Material 3 AppBar with a TabBar body doesn't use appropriate tab icon colors and doesn't activate its scroll-under behavior[/-][+]Material 3 AppBar with a TabBar body doesn't use appropriate tab icon colors and doesn't activate its scroll-under behavior in Flutter 3.0.0[/+]on May 12, 2022
I'm now realizing that maybe Material 3 has moved away from tabs on top app bars. If that's the case, I will need to figure out what to do about my pages that currently have tabs where there's already a bottom nav bar.
changed the title [-]Material 3 AppBar with a TabBar body doesn't use appropriate tab icon colors and doesn't activate its scroll-under behavior in Flutter 3.0.0[/-][+][Material 3] `AppBar` with a `TabBar` doesn't use appropriate tab label color[/+]on May 13, 2022
changed the title [-][Material 3] `AppBar` with a `TabBar` doesn't use appropriate tab label color[/-][+]`AppBar` with a `TabBar` doesn't use appropriate tab label color[/+]on May 24, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[-]Material 3 AppBar with a TabBar body doesn't use appropriate tab icon colors and doesn't activate its scroll-under behavior[/-][+]Material 3 AppBar with a TabBar body doesn't use appropriate tab icon colors and doesn't activate its scroll-under behavior in Flutter 3.0.0[/+]parnic commentedon May 13, 2022
I'm now realizing that maybe Material 3 has moved away from tabs on top app bars. If that's the case, I will need to figure out what to do about my pages that currently have tabs where there's already a bottom nav bar.
TahaTesser commentedon May 13, 2022
Hi!
Thanks for following the issue, I can reproduce it.
minimal code sample
flutter doctor -v
[-]Material 3 AppBar with a TabBar body doesn't use appropriate tab icon colors and doesn't activate its scroll-under behavior in Flutter 3.0.0[/-][+][Material 3] `AppBar` with a `TabBar` doesn't use appropriate tab label color[/+]TahaTesser commentedon May 13, 2022
These are two issues with different natures of fixes, Let's relabel this issue for tab label colors.
Filed #103698 for scroll under issue.
[-][Material 3] `AppBar` with a `TabBar` doesn't use appropriate tab label color[/-][+]`AppBar` with a `TabBar` doesn't use appropriate tab label color[/+]TahaTesser commentedon Sep 20, 2022
Fixing #111962 should also fix this issue.
TahaTesser commentedon Nov 30, 2022
#116110 landed, it should fix this issue.
github-actions commentedon Mar 5, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.