@@ -34,6 +34,7 @@ class DialogTheme with Diagnosticable {
3434 this .alignment,
3535 this .titleTextStyle,
3636 this .contentTextStyle,
37+ this .actionsPadding,
3738 });
3839
3940 /// Overrides the default value for [Dialog.backgroundColor] .
@@ -56,6 +57,9 @@ class DialogTheme with Diagnosticable {
5657 /// [AlertDialog.content] .
5758 final TextStyle ? contentTextStyle;
5859
60+ /// Overrides the default value for [AlertDialog.actionsPadding] .
61+ final EdgeInsetsGeometry ? actionsPadding;
62+
5963 /// Creates a copy of this object but with the given fields replaced with the
6064 /// new values.
6165 DialogTheme copyWith ({
@@ -65,6 +69,7 @@ class DialogTheme with Diagnosticable {
6569 AlignmentGeometry ? alignment,
6670 TextStyle ? titleTextStyle,
6771 TextStyle ? contentTextStyle,
72+ EdgeInsetsGeometry ? actionsPadding,
6873 }) {
6974 return DialogTheme (
7075 backgroundColor: backgroundColor ?? this .backgroundColor,
@@ -73,6 +78,7 @@ class DialogTheme with Diagnosticable {
7378 alignment: alignment ?? this .alignment,
7479 titleTextStyle: titleTextStyle ?? this .titleTextStyle,
7580 contentTextStyle: contentTextStyle ?? this .contentTextStyle,
81+ actionsPadding: actionsPadding ?? this .actionsPadding,
7682 );
7783 }
7884
@@ -95,6 +101,7 @@ class DialogTheme with Diagnosticable {
95101 alignment: AlignmentGeometry .lerp (a? .alignment, b? .alignment, t),
96102 titleTextStyle: TextStyle .lerp (a? .titleTextStyle, b? .titleTextStyle, t),
97103 contentTextStyle: TextStyle .lerp (a? .contentTextStyle, b? .contentTextStyle, t),
104+ actionsPadding: EdgeInsetsGeometry .lerp (a? .actionsPadding, b? .actionsPadding, t),
98105 );
99106 }
100107
@@ -115,7 +122,8 @@ class DialogTheme with Diagnosticable {
115122 && other.shape == shape
116123 && other.alignment == alignment
117124 && other.titleTextStyle == titleTextStyle
118- && other.contentTextStyle == contentTextStyle;
125+ && other.contentTextStyle == contentTextStyle
126+ && other.actionsPadding == actionsPadding;
119127 }
120128
121129 @override
@@ -127,5 +135,6 @@ class DialogTheme with Diagnosticable {
127135 properties.add (DiagnosticsProperty <AlignmentGeometry >('alignment' , alignment, defaultValue: null ));
128136 properties.add (DiagnosticsProperty <TextStyle >('titleTextStyle' , titleTextStyle, defaultValue: null ));
129137 properties.add (DiagnosticsProperty <TextStyle >('contentTextStyle' , contentTextStyle, defaultValue: null ));
138+ properties.add (DiagnosticsProperty <EdgeInsetsGeometry >('actionsPadding' , actionsPadding, defaultValue: null ));
130139 }
131140}
0 commit comments