v79
12/15/2022, 9:01 PMFullScreenDialog
, as listed here https://m3.material.io/components/dialogs/overview - but it's definitely not listed here https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary !mattinger
12/15/2022, 9:23 PM@OptIn(ExperimentalComposeUiApi::class)
@Preview
@Composable
fun DialogTestPreview() {
MaterialTheme {
Dialog(
onDismissRequest = { },
properties = DialogProperties(
usePlatformDefaultWidth = false
)
) {
Column(modifier = Modifier
.fillMaxSize(1.0f)
.clip(RoundedCornerShape(8.dp))
.background(Color.White)
) {
IconButton(onClick = { /*TODO*/ }, modifier = Modifier.align(Alignment.End)) {
Icon(Icons.Default.Close, contentDescription = null)
}
Text(text = "Title")
Button(onClick = { }) {
Text("OK")
}
}
}
}
}
mattinger
12/15/2022, 9:23 PMv79
12/15/2022, 9:24 PMmattinger
12/15/2022, 9:25 PMChris Sinco [G]
12/16/2022, 5:48 AMFunkyMuse
12/16/2022, 7:59 AM