DuskScaffold

fun DuskScaffold(modifier: Modifier = Modifier, onDismissBackground: () -> Unit? = null, showBrand: Boolean = true, sheet: @Composable ColumnScope.(contentAlpha: Float) -> Unit? = null, background: @Composable BoxScope.() -> Unit? = null)

Full-screen Dusk-themed scaffold with animated void + stars + KUIRA brand and an optional bottom sheet for content.

This is the shared visual container for every approval/onboarding/auth screen in the wallet. It handles the entrance animation (background fade, star twinkle, brand materialize, sheet slide-up) and gives callers a BoxScope for any additional content.

Parameters

modifier

Optional root modifier

onDismissBackground

Called if the user taps outside the sheet. Pass null to disable dismissal (e.g., during a critical flow).

showBrand

Whether to show the animated KUIRA wordmark at the top.

sheet

Bottom sheet content — receives a ColumnScope and a content fade-in alpha that gates inner content until the entrance settles.

background

Optional extra background content (behind stars).