@@ -117,44 +117,48 @@ class YYDialog {
117
117
child: Row (
118
118
mainAxisAlignment: getRowMainAxisAlignment (gravity),
119
119
children: < Widget > [
120
- FlatButton (
120
+ TextButton (
121
121
onPressed: () {
122
122
if (onTap1 != null ) onTap1 ();
123
123
if (isClickAutoDismiss) {
124
124
dismiss ();
125
125
}
126
126
},
127
- padding: buttonPadding1,
128
- child: Text (
129
- text1 ?? "" ,
130
- style: TextStyle (
127
+ style: TextButton .styleFrom (
128
+ padding: buttonPadding1,
129
+ textStyle: TextStyle (
131
130
color: color1 ?? null ,
132
131
fontSize: fontSize1 ?? null ,
133
132
fontWeight: fontWeight1,
134
133
fontFamily: fontFamily1,
135
- ),
134
+ )
135
+ ),
136
+ child: Text (
137
+ text1 ?? "" ,
136
138
),
137
139
),
138
140
Visibility (
139
141
visible: withDivider,
140
142
child: VerticalDivider (),
141
143
),
142
- FlatButton (
144
+ TextButton (
143
145
onPressed: () {
144
146
if (onTap2 != null ) onTap2 ();
145
147
if (isClickAutoDismiss) {
146
148
dismiss ();
147
149
}
148
150
},
149
- padding: buttonPadding2,
151
+ style: TextButton .styleFrom (
152
+ padding: buttonPadding2,
153
+ textStyle: TextStyle (
154
+ color: color2 ?? Colors .black,
155
+ fontSize: fontSize2 ?? 14.0 ,
156
+ fontWeight: fontWeight2,
157
+ fontFamily: fontFamily2,
158
+ ),
159
+ ),
150
160
child: Text (
151
161
text2 ?? "" ,
152
- style: TextStyle (
153
- color: color2 ?? Colors .black,
154
- fontSize: fontSize2 ?? 14.0 ,
155
- fontWeight: fontWeight2,
156
- fontFamily: fontFamily2,
157
- ),
158
162
),
159
163
)
160
164
],
0 commit comments