Toggle Button
Simple animated toggle button using jetpack compose.
Example
val state = remember { mutableStateOf(ToggleState.Right) }
Toggle( modifier = Modifier, state = state.value, size = 50.dp, onChange = { state.value = it } )
Simple animated toggle button using jetpack compose.
Example
val state = remember { mutableStateOf(ToggleState.Right) }
Toggle( modifier = Modifier, state = state.value, size = 50.dp, onChange = { state.value = it } )