Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d06661a

Browse files
Merge pull request YYFlutter#54 from frozenrainyoo/master
Apply buttonPadding for doubleButton
2 parents 8d8295e + 48d6872 commit d06661a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

β€Žlib/flutter_custom_dialog.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
(0)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /