Skip to content

Commit

Permalink
Fixes marianocordoba#14: swapping the OverflowBox and the Transform
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCsabaToth committed May 28, 2021
1 parent 623ed25 commit 00b9b4f
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions lib/fab_circular_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,19 @@ class FabCircularMenuState extends State<FabCircularMenu>
alignment: widget.alignment,
children: <Widget>[
// Ring
Transform(
transform: Matrix4.translationValues(
_translationX,
_translationY,
0.0,
)..scale(_scaleAnimation.value),
alignment: FractionalOffset.center,
child: OverflowBox(
maxWidth: _ringDiameter,
maxHeight: _ringDiameter,
OverflowBox(
maxWidth: _ringDiameter,
maxHeight: _ringDiameter,
child: Transform(
transform:
Matrix4.translationValues(_translationX, _translationY, 0.0)
..scale(_scaleAnimation.value),
alignment: FractionalOffset.center,
child: Container(
width: _ringDiameter,
height: _ringDiameter,
child: CustomPaint(
painter: _RingPainter(
width: _ringWidth,
color: _ringColor,
),
painter: _RingPainter(width: _ringWidth, color: _ringColor),
child: _scaleAnimation.value == 1.0
? Transform.rotate(
angle: (2 * pi) *
Expand Down

0 comments on commit 00b9b4f

Please sign in to comment.