Dialog Box
fun DialogBox(color: Color = Color.White, shape: RoundedCornerShape = RoundedCornerShape(12.dp), margin: Dp = 22.dp, padding: Dp = 25.dp, maxWidth: Dp = 560.dp, content: @Composable () -> Unit)
弹窗内容容器(Box 版本) 提供统一的圆角白色背景、外边距和内边距,用于包裹自定义弹窗内容
Parameters
color
Color 背景颜色,默认白色
shape
RoundedCornerShape 圆角形状,默认 12dp 圆角
margin
Dp 距屏幕(或父容器)边缘的外边距,默认 22dp
padding
Dp 内容与背景边缘的内边距,默认 25dp
max Width
Dp 弹窗最大宽度,默认 560dp
content
@Composable () -> Unit 弹窗内部内容