Skip to content

Commit 4dc4b9c

Browse files
authored
Merge pull request #74 from QuartzIII/fix_rotate_pieces
fix: flip pieces instead of rotating
2 parents 99b0713 + 610401e commit 4dc4b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/widgets/piece.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PieceWidget extends StatelessWidget {
2828
/// Pieces are hidden in blindfold mode.
2929
final bool blindfoldMode;
3030

31-
/// If `true` the piece is displayed rotated by 180 degrees.
31+
/// If `true` the piece is displayed fliped on Y axis.
3232
final bool upsideDown;
3333

3434
/// This value is used to animate the opacity of the piece.
@@ -61,6 +61,6 @@ class PieceWidget extends StatelessWidget {
6161
opacity: opacity,
6262
);
6363

64-
return upsideDown ? Transform.rotate(angle: math.pi, child: image) : image;
64+
return upsideDown ? Transform.flip(flipY: true, child: image) : image;
6565
}
6666
}

0 commit comments

Comments
 (0)