@@ -46,14 +46,28 @@ class YYDialog {
4646 }
4747
4848 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}) {
5060 return this .widget (
5161 Padding (
5262 padding: padding ?? EdgeInsets .all (0.0 ),
5363 child: Align (
5464 alignment: alignment ?? Alignment .centerLeft,
5565 child: Text (
5666 text ?? "" ,
67+ textAlign: textAlign,
68+ maxLines: maxLines,
69+ textDirection: textDirection,
70+ overflow: overflow,
5771 style: TextStyle (
5872 color: color ?? Colors .black,
5973 fontSize: fontSize ?? 14.0 ,
@@ -189,9 +203,7 @@ class YYDialog {
189203 Color activeColor,
190204 Function (int ) onClickItemListener,
191205 }) {
192- Size size = MediaQuery
193- .of (context)
194- .size;
206+ Size size = MediaQuery .of (context).size;
195207 return this .widget (
196208 Container (
197209 height: height,
@@ -407,8 +419,7 @@ class CustomDialog {
407419 bool gravityAnimationEnable,
408420 Function animatedFunc,
409421 bool barrierDismissible,
410- })
411- : _child = child,
422+ }) : _child = child,
412423 _context = context,
413424 _gravity = gravity,
414425 _gravityAnimationEnable = gravityAnimationEnable,
@@ -445,7 +456,8 @@ class CustomDialog {
445456 );
446457 }
447458
448- Widget _buildMaterialDialogTransitions (BuildContext context,
459+ Widget _buildMaterialDialogTransitions (
460+ BuildContext context,
449461 Animation <double > animation,
450462 Animation <double > secondaryAnimation,
451463 Widget child) {
0 commit comments