File tree Expand file tree Collapse file tree 1 file changed +22
-20
lines changed Expand file tree Collapse file tree 1 file changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -544,6 +544,7 @@ class _GFButtonState extends State<GFButton> {
544544 );
545545 }
546546
547+
547548 final Widget result = Container (
548549 constraints: icon == null
549550 ? const BoxConstraints (minWidth: 80 )
@@ -585,26 +586,27 @@ class _GFButtonState extends State<GFButton> {
585586 child: Center (
586587 widthFactor: 1 ,
587588 heightFactor: 1 ,
588- child: icon != null &&
589- (position == GFPosition .start || position == null )
590- ? Row (
591- mainAxisSize: MainAxisSize .min,
592- children: < Widget > [
593- icon,
594- const SizedBox (width: 8 ),
595- child
596- ],
597- )
598- : icon != null && (position == GFPosition .end)
599- ? Row (
600- mainAxisSize: MainAxisSize .min,
601- children: < Widget > [
602- child,
603- const SizedBox (width: 8 ),
604- icon
605- ],
606- )
607- : child,
589+ child: widget.child,
590+ // child: icon != null &&
591+ // (position == GFPosition.start || position == null)
592+ // ? Row(
593+ // mainAxisSize: MainAxisSize.min,
594+ // children: <Widget>[
595+ // icon,
596+ // const SizedBox(width: 8),
597+ // child
598+ // ],
599+ // )
600+ // : icon != null && (position == GFPosition.end)
601+ // ? Row(
602+ // mainAxisSize: MainAxisSize.min,
603+ // children: <Widget>[
604+ // child,
605+ // const SizedBox(width: 8),
606+ // icon
607+ // ],
608+ // )
609+ // : child,
608610 ),
609611 ),
610612 ),
You can’t perform that action at this time.
0 commit comments