Skip to content

Instantly share code, notes, and snippets.

View Wottrich's full-sized avatar
🏃
0% Talent; 100% Hard work

Lucas Cruz Wottrich Wottrich

🏃
0% Talent; 100% Hard work
View GitHub Profile
@surajsau
surajsau / ParallaxScreen.kt
Last active June 28, 2024 21:14
Parallax effect with Jetpack Compose
@Composable
fun ParallaxScreen(modifier: Modifier = Modifier) {
val context = LocalContext.current
val scope = rememberCoroutineScope()
var data by remember { mutableStateOf<SensorData?>(null) }
DisposableEffect(Unit) {
val dataManager = SensorDataManager(context)
dataManager.init()