FullscreenButton

fun FullscreenButton(modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), enter: @Composable () -> Unit = { Icon( Icons.Rounded.Fullscreen, contentDescription = "Enter fullscreen" ) }, exit: @Composable () -> Unit = { Icon( Icons.Rounded.FullscreenExit, contentDescription = "Exit fullscreen" ) })

A button that toggles fullscreen.

Parameters

modifier

the Modifier to be applied to this button

contentPadding

the spacing values to apply internally between the container and the content

enter

button content when the player is not fullscreen, typically an "enter fullscreen" icon

exit

button content when the player is fullscreen, typically an "exit fullscreen" icon