ErrorUIContent
private fun ErrorUIContent( containerModifier: Modifier = Modifier, imageModifier: Modifier = Modifier, textStyle: TextStyle = TextStyle.Default, backgroundColor: Color = MaterialTheme.colorScheme.background, errorIcon: ImageVector = Icons.Default.Error, errorColor: Color = MaterialTheme.colorScheme.error, errorMessage: String, retryAction: @Composable () -> Unit? = null, retryText: String? = null)
Method used to display the content of the ErrorUI layout
Parameters
containerModifier
The modifier to apply to the container column
imageModifier
The modifier to apply to the image icon
textStyle
The style to apply to the text
backgroundColor
The color of the background
errorIcon
The error icon used, as default is used the Icons.Default.Error
errorColor
The error color used, as default is used the MaterialTheme.colorScheme.errorContainer
errorMessage
The error that occurred or to indicate a generic error
retryAction
The retry action to execute
retryText
The retry message