Fixed
Status Update
Comments
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #2
the same issue for SmallTopAppBar:
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit 46c69840b7e4462f71a2289213f2771ae7702c9f
Author: Shalom Gibly <sgibly@google.com>
Date: Wed Oct 12 16:05:59 2022
Updates medium and large top app bar background
Updates to apply the same background color to both part of the Medium or
Large top app bar.
This change also allows such a top app bar to be made transparent.
Bug: 249688556
Bug: 250838918
Test: AppBarTest passing
Relnote: "Updates Material3 Medium and Large top app bars to apply the
same background color across their entire surface, and to allow setting
overriding the default colors with transparent color values."
Change-Id: I67659d8754b953165a5b2fa3c7a5720a0976665e
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/AppBar.kt
https://android-review.googlesource.com/2253154
Branch: androidx-main
commit 46c69840b7e4462f71a2289213f2771ae7702c9f
Author: Shalom Gibly <sgibly@google.com>
Date: Wed Oct 12 16:05:59 2022
Updates medium and large top app bar background
Updates to apply the same background color to both part of the Medium or
Large top app bar.
This change also allows such a top app bar to be made transparent.
Bug: 249688556
Bug: 250838918
Test: AppBarTest passing
Relnote: "Updates Material3 Medium and Large top app bars to apply the
same background color across their entire surface, and to allow setting
overriding the default colors with transparent color values."
Change-Id: I67659d8754b953165a5b2fa3c7a5720a0976665e
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/AppBar.kt
ap...@google.com <ap...@google.com> #4
I encountered this issue, on what version of material 3 has this been fixed?
ap...@google.com <ap...@google.com> #5
This is my workaround for this issue
MaterialTheme(
colorScheme = MaterialTheme.colorScheme.copy(
//The color you want for the second top app bar
surface = MaterialTheme.colorScheme.primary
),
typography = MaterialTheme.typography
) {
LargeTopAppBar(
modifier = Modifier.background(MaterialTheme.colorScheme.primary),
title = {
Text("Wednesday")
},
)
}
ma...@google.com <ma...@google.com>
pr...@google.com <pr...@google.com> #6
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.material3:material3:1.0.1
androidx.compose.material3:material3:1.1.0-alpha02
xe...@gmail.com <xe...@gmail.com> #7
This issue is still present in material3:1.0.1 - moving to 1.1.0-beta01 fixed it for me.
ma...@google.com <ma...@google.com> #8
i am also getting the same issue, is there any solution for this ?
Description
The current implementation uses the same component for the unexpanded search bar and the expanded search view. This makes it hard to use the search bar in the middle of other content, since you have to ensure not to accidentally pass constraints that prevent it from being full screen.
Making the full-screen search view into a dialog would avoid most of these issues.
If there is enough interest (by +1-ing this issue), we could explore the possibility of using this approach.