Fixed
Status Update
Comments
sg...@google.com <sg...@google.com>
sg...@google.com <sg...@google.com> #2
na...@google.com <na...@google.com> #3
Low-hanging fruit. Shalom, mind taking a look during your work for PIs and loaders?
ap...@google.com <ap...@google.com> #4
We can check for NaN
, but what is the expected behavior here if a NaN
is passed in?
- We can throw an exception, but that would end in the same result you are experiencing now (i.e. a crash if you don't handle it)
- We can just set the progress to zero in cases of
NaN
s, but then you would not be able to tell that you have a problem in your implementation and you are passing in illegal values. - We can document it that we only expect a non
NaN
values, but that seems a bit redundant and we don't usually adding these to the docs as it's implicit in most cases.
Description
Jetpack Compose version: 1.3.1 Jetpack Compose component used: androidx.compose.material3.material3 (1.0.1) Android Studio Build: Giraffe | 2022.3.1 Canary 2 Kotlin version: 1.7.10
Stack trace (if applicable): n/a
In the current version of Material 3 library there's no easy way to manipulate parameters of displayed title in
LargeTopAppBar
. In my case I'd like to change the default value oftitleHorizontalArrangement = Arrangement.Start
but with current API it's not possible.Do you plan to add support for this? Maybe it'd make sense to create a similar object to
TopAppBarColors
but dedicated for title text?Thanks