FullPageStatement

fun FullPageStatement(title: String, content: String, primaryButtonText: String, onPrimaryButtonClick: () -> Unit, modifier: Modifier = Modifier, secondaryButtonText: String? = null, onSecondaryButtonClick: () -> Unit? = null, primaryButtonWidth: Dp? = null, colors: FullPageStatementColors = FullPageStatementDefaults.fullPageStatementColors(), primaryButtonColors: ButtonColors = ButtonDefaults.buttonColorsPrimary(), contentPadding: PaddingValues = FullPageStatementDefaults.ContentPadding, scrollState: ScrollState = rememberScrollState())

A full page statement component with COUI style, mirroring ColorOS's COUIFullPageStatement (coui_full_page_statement.xml): a centered title, a scrollable statement body with vertical fading edges, and a bottom area holding a filled primary button plus an optional borderless exit text button. Typically used as the first-launch privacy / user statement page.

The statement body takes all the space left between the title and the button area, so the buttons stay pinned to the bottom of the page.

Parameters

title

The title of the FullPageStatement, centered at the top (COUI couiTextHeadlineXS: 16sp, medium).

content

The scrollable statement text (COUI couiTextBodyM: 14sp, secondary color).

primaryButtonText

The label of the filled primary button (COUI btn_confirm).

onPrimaryButtonClick

The callback when the primary button is clicked.

modifier

The modifier to be applied to the FullPageStatement.

secondaryButtonText

The label of the borderless exit text button below the primary button (COUI txt_exit). When null, the exit button is not shown.

onSecondaryButtonClick

The callback when the exit text button is clicked.

primaryButtonWidth

The width of the primary button. When null, the COUI adaptive width is used (174dp, 220dp from 300dp wide windows, 280dp from 600dp wide windows — coui_full_page_statement_button_width buckets).

primaryButtonColors

The ButtonColors of the filled primary button. COUI uses the colorful default style (theme primary fill).

contentPadding

The padding around the statement text inside the scrollable area (COUI coui_full_page_statement_padding_horizontal/top/bottom).

scrollState

The ScrollState of the statement text area.