WarningView

fun WarningView(imageVector: ImageVector, title: String, hint: String, modifier: Modifier = Modifier, hintTextAlign: TextAlign? = TextAlign.Center, content: @Composable ColumnScope.() -> Unit = {})

A warning view is a component that displays a warning icon, a title, and a hint.

Parameters

imageVector

The vector icon to be displayed.

title

The title of the warning.

hint

The hint to be displayed.

modifier

The modifier to be applied to the layout.

hintTextAlign

The text alignment of the hint, defaults to TextAlign.Center.

content

The content to be displayed below the hint.


fun WarningView(imageVector: ImageVector, title: String, hint: AnnotatedString, modifier: Modifier = Modifier, hintTextAlign: TextAlign? = TextAlign.Center, content: @Composable ColumnScope.() -> Unit = {})

A warning view is a component that displays a warning icon, a title, and a hint.

Parameters

imageVector

The vector icon to be displayed.

title

The title of the warning.

hint

The hint to be displayed, as AnnotatedString.

modifier

The modifier to be applied to the layout.

hintTextAlign

The text alignment of the hint, defaults to TextAlign.Center.

content

The content to be displayed below the hint.


fun WarningView(painterResource: Painter, title: String, hint: AnnotatedString, modifier: Modifier = Modifier, hintTextAlign: TextAlign? = TextAlign.Center, content: @Composable ColumnScope.() -> Unit = {})

A warning view is a component that displays a warning icon, a title, and a hint.

Parameters

painterResource

The painter to be displayed.

title

The title of the warning.

hint

The hint to be displayed, as AnnotatedString.

modifier

The modifier to be applied to the layout.

hintTextAlign

The text alignment of the hint, defaults to TextAlign.Center.

content

The content to be displayed below the hint.


fun WarningView(painterResource: Painter, title: String, hint: String, modifier: Modifier = Modifier, hintTextAlign: TextAlign? = TextAlign.Center, content: @Composable ColumnScope.() -> Unit = {})
fun WarningView(painterResource: Painter, title: @Composable () -> Unit, hint: @Composable () -> Unit, modifier: Modifier = Modifier, content: @Composable ColumnScope.() -> Unit = {})

A warning view is a component that displays a warning icon, a title, and a hint.

Parameters

painterResource

The painter to be displayed.

title

The title of the warning.

hint

The hint to be displayed.

modifier

The modifier to be applied to the layout.

content

The content to be displayed below the hint.


fun WarningView(imageVector: ImageVector, title: @Composable () -> Unit, hint: @Composable () -> Unit, modifier: Modifier = Modifier, content: @Composable ColumnScope.() -> Unit = {})

A warning view is a component that displays a warning icon, a title, and a hint.

Parameters

imageVector

The vector icon to be displayed.

title

The title of the warning.

hint

The hint to be displayed.

modifier

The modifier to be applied to the layout.

content

The content to be displayed below the hint.