Material Design wide button for TV.
@Composable
fun WideButtonSample() {
WideButton(onClick = {}) { Text("Settings") }
}
@Composable
fun WideButtonWithIcon() {
WideButton(
onClick = {},
title = { Text("Settings") },
icon = { Icon(imageVector = Icons.Default.Settings, contentDescription = "Settings") },
)
}
@Composable
fun WideButtonWithIconAndSubtitle() {
WideButton(
onClick = {},
title = { Text("Settings") },
subtitle = { Text(text = "Update device preferences") },
icon = { Icon(imageVector = Icons.Default.Settings, contentDescription = "Settings") },
)
}
@Composable
fun WideButtonWithSubtitle() {
WideButton(
onClick = {},
title = { Text("Settings") },
subtitle = { Text(text = "Update device preferences") },
)
}