ionicfirebaseapp/getwidget

can't change GFButton width,

xyhuangjia opened this issue · 1 comments

my code is this

 GFButton(
        onPressed: widget.onPressed,
        text: widget.title,
        padding: EdgeInsets.all(0),
        materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
        shape: GFButtonShape.pills,
        type: GFButtonType.outline,
        size: GFSize.MEDIUM,
      );

button is too long to me, I can't find way to change it

Hi. You can try wrapping your GFButton widget with the SizedBox widget and give appropriate width. It works fine.

For example,

SizedBox(
  height: 20.0, 
  width: 60.0,  // Change the values according to your needs
  child: GFButton(
    // GFButton properties
  ),
);

And the result 👇

GFButton issue - #287