Elye
Elye

Reputation: 60131

The label parameter should be set so this transition can be better inspected in Animation Preview

I follow the example code in https://developer.android.com/jetpack/compose/animation#updateTransition, and notice a warning as below. I tried Shift-Option-Enter, but it is not auto fixed.

I am not sure what the fix should be. Can someone advise?

enter image description here

Upvotes: 0

Views: 952

Answers (1)

Phil Dukhov
Phil Dukhov

Reputation: 87854

This warning asks you for the label parameter:

updateTransition(currentState, label = "inspection label")

Upvotes: 2

Related Questions