fab-circular-menu icon indicating copy to clipboard operation
fab-circular-menu copied to clipboard

Adding an attribute to skip the margin offset for the fab

Open ericmartineau opened this issue 4 years ago • 2 comments

In my case, I was positioning the FAB using a stack (I'm using ios scaffold widgets).

The margin offsets were causing my button to float slightly to the left and downward. This attribute allows for removing the margin offset transformation.

ericmartineau avatar Nov 10 '20 15:11 ericmartineau

Hi @ericmartineau. Thank you for your PR! Can you please update the README with the documentation for the new property?

marianocordoba avatar Nov 11 '20 13:11 marianocordoba

It'd be so great if we could just ditch the

  Container(
      margin: widget.fabMargin,
      // Removes the default FAB margin
      transform: Matrix4.translationValues(
        16.0 * _directionX,
        16.0 * _directionY,
        0.0,
      ),
      child:

and just start the build return with the Stack. It works for me,

MrCsabaToth avatar May 28 '21 21:05 MrCsabaToth