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 48d6872

Browse files
Apply custom buttonPadding for doubleButton
When button text length is short, doubleButton is hard to tab. so, need custom buttonPadding.
1 parent fed614b commit 48d6872

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 γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /