Created
April 23, 2021 22:14
-
-
Save pauloaapereira/63f7c266bdc0885c31b439feae21a63a to your computer and use it in GitHub Desktop.
Jetpack Compose - Earthquake Effect_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Stable | |
class EarthquakeState { | |
var isShaking by mutableStateOf(false) | |
var earthquakeDuration by mutableStateOf(2000L) | |
var shakesPerSecond by mutableStateOf(10) | |
var shakeForce by mutableStateOf(10) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment