AppFeedback

fun AppFeedback(title: StringResource, description: StringResource, imageSource: AppImageSource?, modifier: Modifier = Modifier, fullScreen: Boolean = false, primaryText: StringResource? = null, onPrimary: () -> Unit? = null, secondaryText: StringResource? = null, onSecondary: () -> Unit? = null, onClose: () -> Unit? = null)

A generic feedback component used as a base for error states, empty states, and success messages. This version accepts StringResource for title and description.

Parameters

title

The main title of the feedback.

description

A detailed description of the state.

imageSource

The illustrative image for the feedback.

modifier

The Modifier to be applied to the root layout.

fullScreen

If true, displays the feedback within a Scaffold and TopBar. Defaults to false.

primaryText

Text for the primary action button.

onPrimary

Callback for the primary action button.

secondaryText

Text for the secondary action button.

onSecondary

Callback for the secondary action button.

onClose

Callback for the close icon in the toolbar (only used if fullScreen is true).


fun AppFeedback(title: String, description: String, imageSource: AppImageSource?, modifier: Modifier = Modifier, fullScreen: Boolean = false, primaryText: String? = null, onPrimary: () -> Unit? = null, secondaryText: String? = null, onSecondary: () -> Unit? = null, onClose: () -> Unit? = null)

A generic feedback component used as a base for error states, empty states, and success messages. This version accepts raw String for title and description.

Parameters

title

The main title of the feedback.

description

A detailed description of the state.

imageSource

The illustrative image for the feedback.

modifier

The Modifier to be applied to the root layout.

fullScreen

If true, displays the feedback within a Scaffold and TopBar. Defaults to false.

primaryText

Text for the primary action button.

onPrimary

Callback for the primary action button.

secondaryText

Text for the secondary action button.

onSecondary

Callback for the secondary action button.

onClose

Callback for the close icon in the toolbar (only used if fullScreen is true).