Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/widgets/piece.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PieceWidget extends StatelessWidget {
/// Pieces are hidden in blindfold mode.
final bool blindfoldMode;

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

/// This value is used to animate the opacity of the piece.
Expand Down Expand Up @@ -61,6 +61,6 @@ class PieceWidget extends StatelessWidget {
opacity: opacity,
);

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