Skip to content

box with controls

milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.ui.components.gallery/BoxWithControls

BoxWithControls

[androidJvm]\

@Composable

fun BoxWithControls(modifier: Modifier = Modifier, src: Any? = null, contentAlignment: Alignment = Alignment.BottomCenter, controlsState: MutableState<Boolean> = remember { mutableStateOf(false) }, onTap: () -> Unit = { controlsState.toggle() }, controls: @Composable(src: Any?, bckColor: Color, controlsState: MutableState<Boolean>) -> Unit = { _, _, _ -> }, content: @Composable(src: Any?, bckColor: Color, controlsState: MutableState<Boolean>) -> Unit)

Clone this wiki locally