Skip to content

Commit

Permalink
Fixes marianocordoba#26: alignment of the translation transform
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCsabaToth committed May 28, 2021
1 parent 00b9b4f commit 6aa6eb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fab_circular_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ class FabCircularMenuState extends State<FabCircularMenu>
return Container(
margin: widget.fabMargin,
// Removes the default FAB margin
transform: Matrix4.translationValues(16.0, 16.0, 0.0),
transform: Matrix4.translationValues(
16.0 * _directionX,
16.0 * _directionY,
0.0,
),
child: Stack(
alignment: widget.alignment,
children: <Widget>[
Expand Down

0 comments on commit 6aa6eb3

Please sign in to comment.