diff --git a/tarok/lib/game/game.dart b/tarok/lib/game/game.dart index 0b1101c..4ec18da 100644 --- a/tarok/lib/game/game.dart +++ b/tarok/lib/game/game.dart @@ -49,7 +49,7 @@ class Game extends StatelessWidget { final m = min(fullHeight, fullWidth); const cardK = 0.38; final leftFromTop = fullHeight * 0.3; - final cardToWidth = fullWidth * 0.35 - (m * cardK * 0.57 * 0.6); + final cardToWidth = fullWidth * 0.4 - (m * cardK * 0.57 * 0.6); final center = cardToWidth - m * cardK * 0.57 * 0.6; final userSquareSize = min(fullHeight / 5, 100.0).toDouble(); final border = (fullWidth / 800); diff --git a/tarok/lib/game/game_controller.dart b/tarok/lib/game/game_controller.dart index 60ea3ac..fa258bf 100644 --- a/tarok/lib/game/game_controller.dart +++ b/tarok/lib/game/game_controller.dart @@ -2158,7 +2158,11 @@ class GameController extends GetxController { height: cardHeight, width: cardWidth, ), - e.widget, + SizedBox( + height: cardHeight, + width: cardWidth, + child: Center(child: e.widget), + ), ], ), ), @@ -2174,9 +2178,9 @@ class GameController extends GetxController { top: stihBoolValues[1] != true ? leftFromTop - (cardHeight * 0.5) - 100 : leftFromTop - (cardHeight * 0.5), - left: stihBoolValues[1] != true - ? cardToWidth + cardHeight / 3 + 100 - : cardToWidth + cardHeight / 3, + right: stihBoolValues[1] != true + ? fullWidth * (1 / 6 + 0.25) + : fullWidth * (1 / 6 + 0.25) + 100, height: cardHeight, child: AnimatedRotation( duration: const Duration(milliseconds: ANIMATION_TIME), @@ -2190,7 +2194,11 @@ class GameController extends GetxController { height: cardHeight, width: cardWidth, ), - e.widget, + SizedBox( + height: cardHeight, + width: cardWidth, + child: Center(child: e.widget), + ), ], ), ), @@ -2216,7 +2224,11 @@ class GameController extends GetxController { height: cardHeight, width: cardWidth, ), - e.widget, + SizedBox( + height: cardHeight, + width: cardWidth, + child: Center(child: e.widget), + ), ], ), ), @@ -2245,7 +2257,11 @@ class GameController extends GetxController { height: cardHeight, width: cardWidth, ), - e.widget, + SizedBox( + height: cardHeight, + width: cardWidth, + child: Center(child: e.widget), + ), ], ), ),