Anyone notice that a translate animation(by defaul...
# compose-desktop
l
Anyone notice that a translate animation(by default, from the start of screen to the end) is added for FAB in
1.0.0-beta02
? I don’t think that’s a good idea… the animation looks so wired on initializing UI and no API to disable it https://android-review.googlesource.com/c/platform/frameworks/support/+/1580345
l
Doesn't seem to be desktop specific. Anyway, the place to raise the concern is here: https://goo.gle/compose-feedback Please link after your report, I'll star it.
a
@Louis Pullen-Freilich [G]
l
Do you have an example of what you mean by initializing ui? When does this animation show for you?
l
@louiscad I’m sorry, I didn’t realize that I posted in wrong channel… ticket has been created: https://issuetracker.google.com/issues/182393116 @Louis Pullen-Freilich [G] I attach a video for the wired animation, the FAB is not shown firstly, and then some changes make it visible, sample Composable code:
Copy code
@Composable
fun FabIssueSample() {
    val showFab = remember { mutableStateOf(false) }
    Scaffold(
        floatingActionButton = {
            if (showFab.value) {
                FloatingActionButton(onClick = {

                }) {
                    Text(text = "FAB")
                }
            }
        }
    ) {
        Box(contentAlignment = Alignment.Center, modifier = Modifier.fillMaxSize()) {
            Button(onClick = { showFab.value = !showFab.value }) {
                Text(text = "Toggle FAB")
            }
        }
    }
}
👍 1
l
Thanks for filling, yeah there shouldn't be an animation here
👍 1
i
BTW, the is also an animation on resize 🙂
l
Could you add that to the bug as well please? Thanks!
1