Skip to content
Snippets Groups Projects
Commit 423eb5d1 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Fix seeds display

parent d811b489
No related branches found
No related tags found
1 merge request!8Resolve "Fix seeds display in players stocks"
Pipeline #5958 passed
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
app.versionName=0.0.7
app.versionCode=7
app.versionName=0.0.8
app.versionCode=8
Fix seeds display.
Correction sur l'affichage des graines.
......@@ -4,7 +4,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:awale/cubit/game_cubit.dart';
import 'package:awale/models/game/game.dart';
import 'package:awale/ui/widgets/game/game_seeds.dart';
class GameScoreWidget extends StatelessWidget {
const GameScoreWidget({
......@@ -37,7 +36,21 @@ class GameScoreWidget extends StatelessWidget {
),
),
width: 100,
child: GameSeedsWidget(seedsCount: currentGame.scores[playerIndex]),
child: RotatedBox(
quarterTurns: 1 + 2 * playerIndex,
child: Padding(
padding: const EdgeInsets.fromLTRB(0, 65, 0, 0),
child: Text(
currentGame.scores[playerIndex].toString(),
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 40,
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.primary,
),
),
),
),
);
},
);
......
......@@ -33,16 +33,16 @@ class GameSeedsWidget extends StatelessWidget {
[-20, 0], // 6
[-10, -17], // 7
[0, -34], // 8
[21, -34], // 9
[30, -16], // 10
[20, -34], // 9
[30, -17], // 10
[40, 0], // 11
[30, -18], // 12
[20, 35], // 13
[0, 35], // 14
[-20, 35], // 15
[-30, 18], // 16
[-38, 0], // 17
[-30, -16], // 18
[30, 17], // 12
[20, 34], // 13
[0, 34], // 14
[-20, 34], // 15
[-30, 17], // 16
[-40, 0], // 17
[-30, -17], // 18
[-20, -34], // 19
];
......
......@@ -3,7 +3,7 @@ description: Awale game
publish_to: "none"
version: 0.0.7+7
version: 0.0.8+8
environment:
sdk: "^3.0.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment