Skip to content

Instantly share code, notes, and snippets.

View IkariMeister's full-sized avatar
🏠
Working from home

Juan Carlos Garcia Seco IkariMeister

🏠
Working from home
View GitHub Profile
@surajsau
surajsau / ParallaxScreen.kt
Last active June 20, 2024 09:09
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()