@@ -46,14 +46,28 @@ class YYDialog {
46
46
}
47
47
48
48
YYDialog text (
49
- {padding, text, color, fontSize, alignment, fontWeight, fontFamily}) {
49
+ {padding,
50
+ text,
51
+ color,
52
+ fontSize,
53
+ alignment,
54
+ textAlign,
55
+ maxLines,
56
+ textDirection,
57
+ overflow,
58
+ fontWeight,
59
+ fontFamily}) {
50
60
return this .widget (
51
61
Padding (
52
62
padding: padding ?? EdgeInsets .all (0.0 ),
53
63
child: Align (
54
64
alignment: alignment ?? Alignment .centerLeft,
55
65
child: Text (
56
66
text ?? "" ,
67
+ textAlign: textAlign,
68
+ maxLines: maxLines,
69
+ textDirection: textDirection,
70
+ overflow: overflow,
57
71
style: TextStyle (
58
72
color: color ?? Colors .black,
59
73
fontSize: fontSize ?? 14.0 ,
@@ -189,9 +203,7 @@ class YYDialog {
189
203
Color activeColor,
190
204
Function (int ) onClickItemListener,
191
205
}) {
192
- Size size = MediaQuery
193
- .of (context)
194
- .size;
206
+ Size size = MediaQuery .of (context).size;
195
207
return this .widget (
196
208
Container (
197
209
height: height,
@@ -407,8 +419,7 @@ class CustomDialog {
407
419
bool gravityAnimationEnable,
408
420
Function animatedFunc,
409
421
bool barrierDismissible,
410
- })
411
- : _child = child,
422
+ }) : _child = child,
412
423
_context = context,
413
424
_gravity = gravity,
414
425
_gravityAnimationEnable = gravityAnimationEnable,
@@ -445,7 +456,8 @@ class CustomDialog {
445
456
);
446
457
}
447
458
448
- Widget _buildMaterialDialogTransitions (BuildContext context,
459
+ Widget _buildMaterialDialogTransitions (
460
+ BuildContext context,
449
461
Animation <double > animation,
450
462
Animation <double > secondaryAnimation,
451
463
Widget child) {
0 commit comments