File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,14 @@ class YYDialog {
102102 fontWeight1,
103103 fontFamily1,
104104 VoidCallback onTap1,
105+ buttonPadding1 = const EdgeInsets .all (0.0 ),
105106 text2,
106107 color2,
107108 fontSize2,
108109 fontWeight2,
109110 fontFamily2,
110111 onTap2,
112+ buttonPadding2 = const EdgeInsets .all (0.0 ),
111113 }) {
112114 return this .widget (
113115 SizedBox (
@@ -122,7 +124,7 @@ class YYDialog {
122124 dismiss ();
123125 }
124126 },
125- padding: EdgeInsets . all ( 0.0 ) ,
127+ padding: buttonPadding1 ,
126128 child: Text (
127129 text1 ?? "" ,
128130 style: TextStyle (
@@ -144,7 +146,7 @@ class YYDialog {
144146 dismiss ();
145147 }
146148 },
147- padding: EdgeInsets . all ( 0.0 ) ,
149+ padding: buttonPadding2 ,
148150 child: Text (
149151 text2 ?? "" ,
150152 style: TextStyle (
You can’t perform that action at this time.
0 commit comments