Package dev.atsushieno.composempp.material

Types

PopupProperties
Link copied to clipboard
class PopupProperties(focusable: Boolean)

Functions

AlertDialog
Link copied to clipboard
@Composable
fun AlertDialog(onDismissRequest: () -> Unit, buttons: @Composable () -> Unit, modifier: Modifier = Modifier, title: @Composable () -> Unit? = null, text: @Composable () -> Unit? = null, shape: Shape = MaterialTheme.shapes.medium, backgroundColor: Color = MaterialTheme.colors.surface, contentColor: Color = contentColorFor(backgroundColor))
@Composable
fun AlertDialog(onDismissRequest: () -> Unit, confirmButton: @Composable () -> Unit, modifier: Modifier = Modifier, dismissButton: @Composable () -> Unit? = null, title: @Composable () -> Unit? = null, text: @Composable () -> Unit? = null, shape: Shape = MaterialTheme.shapes.medium, backgroundColor: Color = MaterialTheme.colors.surface, contentColor: Color = contentColorFor(backgroundColor))
DropdownMenu
Link copied to clipboard
@Composable
fun DropdownMenu(expanded: Boolean, onDismissRequest: () -> Unit, modifier: Modifier = Modifier, offset: DpOffset = DpOffset(0.dp, 0.dp), properties: PopupProperties = PopupProperties(focusable = true), content: @Composable ColumnScope.() -> Unit)