components: FullScreenPicker uses the pinned bar
Completes the picker upstream: FullScreenPicker now passes largeTopBar=false to CollapsingScaffold, so the family's selection pickers sit under a pinned single-line bar instead of a tall collapsing header (the short list has nothing to scroll past). Matches Calendula's scrollable-picker fix; applies family-wide. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -15,9 +15,10 @@ import androidx.compose.ui.window.DialogWindowProvider
|
||||
|
||||
/**
|
||||
* Full-screen scaffold for selection pickers: a full-bleed [Dialog] that reuses
|
||||
* [CollapsingScaffold] (collapsing title + back), so a picker is visually
|
||||
* identical to a settings sub-page and uses the full width. [content] places the
|
||||
* connected grouped rows; selecting one calls [onDismiss].
|
||||
* [CollapsingScaffold] with a pinned single-line bar, so a picker uses the full
|
||||
* width without a tall header — it's a short selection list, so the large
|
||||
* collapsing header would only be empty space to scroll past. [content] places
|
||||
* the connected grouped rows; selecting one calls [onDismiss].
|
||||
*/
|
||||
@Composable
|
||||
fun FullScreenPicker(
|
||||
@@ -45,6 +46,7 @@ fun FullScreenPicker(
|
||||
CollapsingScaffold(
|
||||
title = title,
|
||||
onBack = onDismiss,
|
||||
largeTopBar = false,
|
||||
predictiveBack = predictiveBack,
|
||||
content = content,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user