We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99b0713 + 610401e commit 4dc4b9cCopy full SHA for 4dc4b9c
lib/src/widgets/piece.dart
@@ -28,7 +28,7 @@ class PieceWidget extends StatelessWidget {
28
/// Pieces are hidden in blindfold mode.
29
final bool blindfoldMode;
30
31
- /// If `true` the piece is displayed rotated by 180 degrees.
+ /// If `true` the piece is displayed fliped on Y axis.
32
final bool upsideDown;
33
34
/// This value is used to animate the opacity of the piece.
@@ -61,6 +61,6 @@ class PieceWidget extends StatelessWidget {
61
opacity: opacity,
62
);
63
64
- return upsideDown ? Transform.rotate(angle: math.pi, child: image) : image;
+ return upsideDown ? Transform.flip(flipY: true, child: image) : image;
65
}
66
0 commit comments