We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d8295e + 48d6872 commit d06661aCopy full SHA for d06661a
lib/flutter_custom_dialog.dart
@@ -102,12 +102,14 @@ class YYDialog {
102
fontWeight1,
103
fontFamily1,
104
VoidCallback onTap1,
105
+ buttonPadding1 = const EdgeInsets.all(0.0),
106
text2,
107
color2,
108
fontSize2,
109
fontWeight2,
110
fontFamily2,
111
onTap2,
112
+ buttonPadding2 = const EdgeInsets.all(0.0),
113
}) {
114
return this.widget(
115
SizedBox(
@@ -122,7 +124,7 @@ class YYDialog {
122
124
dismiss();
123
125
}
126
},
- padding: EdgeInsets.all(0.0),
127
+ padding: buttonPadding1,
128
child: Text(
129
text1 ?? "",
130
style: TextStyle(
@@ -144,7 +146,7 @@ class YYDialog {
144
146
145
147
148
149
+ padding: buttonPadding2,
150
151
text2 ?? "",
152
0 commit comments