Skip to content

DialogTheme

Customizes the appearance of descendant AlertDialog controls.

属性 ​

名称类型默认值说明
bgcolorOptional[ColorValue]NoneOverrides the default value of bgcolor in all descendant AlertDialog controls.
shadow_colorOptional[ColorValue]NoneOverrides the default value of shadow_color in all descendant AlertDialog controls.
icon_colorOptional[ColorValue]NoneUsed to configure the IconTheme for the icon control.
elevationOptional[Number]NoneOverrides the default value of elevation in all descendant dialog controls.
shapeOptional[OutlinedBorder]NoneOverrides the default value of shape in all descendant AlertDialog controls.
title_text_styleOptional[TextStyle]NoneOverrides the default value of title_text_style in all descendant AlertDialog controls.
content_text_styleOptional[TextStyle]NoneOverrides the default value of content_text_style in all descendant AlertDialog controls.
alignmentOptional[Alignment]NoneOverrides the default value of alignment in all descendant AlertDialog controls.
actions_paddingOptional[PaddingValue]NoneOverrides the default value of actions_padding in all descendant AlertDialog controls.
clip_behaviorOptional[ClipBehavior]NoneOverrides the default value of clip_behavior in all descendant AlertDialog controls.
barrier_colorOptional[ColorValue]NoneOverrides the default value of barrier_color in all descendant AlertDialog controls.
inset_paddingOptional[PaddingValue]NoneOverrides the default value of inset_padding in all descendant AlertDialog controls.

关注我,学习大模型、大数据、Python等热门技术。