jetpack compose when i call a function: 1. there is a red circle in pos1 - not visible…
Jump to turn (11)
- 1jetpack compose when i call a function: there is a red circle in pos1 - not visi
- 2no it is moving total 1 sec no delay
- 3Unresolved reference: animateValue
- 4Type mismatch. Required: TwoWayConverter Found: TweenSpec
- 5forget everything. write a new function that animates circle from pos1 to pos2 a
- 6viewModel: EmulatorViewModel = activityViewModel(),
- 7how to import it
- 8val pos1 = Offset(0f, 0f) val pos2 = Offset(100f, 100f) val circlePosition by an
- 9pos1 not used
- 10Type mismatch. Required: ((Offset) → Unit)? Found: (Offset, Any?) → Unit
- 11val pos1 = Offset(0f, 0f) val pos2 = Offset(1000f, 1000f) var circlePosition by
- User
jetpack compose when i call a function:
- there is a red circle in pos1 - not visible
- circle start to move to pos2 and now visible
- when it is on pos2 it disappears again
- duration - 1 sec
- Assistant
Here's an example of how the animation can be implemented in Jetpack Compose:
code