Updated on 2026-08-14

This commit is contained in:
Tangem 2023-12-18 20:05:37 +04:00
parent 0662e31ed0
commit 669d540b2a
9 changed files with 321 additions and 12 deletions

View file

@ -21,7 +21,7 @@ import kotlinx.coroutines.launch
@Composable
inline fun <reified T : TangemBottomSheetConfigContent> TangemBottomSheet(
config: TangemBottomSheetConfig,
contentColor: Color = TangemTheme.colors.background.primary,
containerColor: Color = TangemTheme.colors.background.primary,
crossinline content: @Composable ColumnScope.(T) -> Unit,
) {
var isVisible by remember { mutableStateOf(value = config.isShow) }
@ -31,9 +31,9 @@ inline fun <reified T : TangemBottomSheetConfigContent> TangemBottomSheet(
ModalBottomSheet(
onDismissRequest = config.onDismissRequest,
sheetState = sheetState,
containerColor = contentColor,
containerColor = containerColor,
shape = TangemTheme.shapes.bottomSheetLarge,
dragHandle = { TangemBottomSheetDraggableHeader(contentColor) },
dragHandle = { TangemBottomSheetDraggableHeader(color = containerColor) },
) {
content(config.content)
}