Obsolete
Status Update
Comments
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com> #2
MaterialTheme is planning to introduce a customizable motion scheme in an upcoming version which should cover this use case.
Description
Jetpack Compose version: 1.0.0-alpha09 Jetpack Compose component used: androidx.compose.material3:material3 Android Studio Build: N/A Kotlin version: N/A
The M3 (and I think M2 as well, but I haven't checked) official M3 compose samples :
TextField
andOutlinedTextField
both appear to animate changes (such as color) when transitioning to and from theisError
state. When including an error message below aTextField
, there doesn't appear to be a way to synchronize the appearance of the error message with the internal animations of theTextField
. For example, take the following sample from theWhen entering and exiting the error state, the error message becomes immediately visible/invisible while the
TextField
animates the state change. This causes visual discontinuity between the components.I see that internally the animations are using a 150ms tween animation, but there's no way to reference this directly since it's marked as
internal
.