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

Merge branch '9-fix-seeds-display-in-players-stocks' into 'master'

Resolve "Fix seeds display in players stocks"

Closes #9

See merge request !8
parents d811b489 423eb5d1
No related branches found
No related tags found
1 merge request!8Resolve "Fix seeds display in players stocks"
Pipeline #5961 passed
org.gradle.jvmargs=-Xmx1536M org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
app.versionName=0.0.7 app.versionName=0.0.8
app.versionCode=7 app.versionCode=8
Fix seeds display.
Correction sur l'affichage des graines.
...@@ -4,7 +4,6 @@ import 'package:flutter_bloc/flutter_bloc.dart'; ...@@ -4,7 +4,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:awale/cubit/game_cubit.dart'; import 'package:awale/cubit/game_cubit.dart';
import 'package:awale/models/game/game.dart'; import 'package:awale/models/game/game.dart';
import 'package:awale/ui/widgets/game/game_seeds.dart';
class GameScoreWidget extends StatelessWidget { class GameScoreWidget extends StatelessWidget {
const GameScoreWidget({ const GameScoreWidget({
...@@ -37,7 +36,21 @@ class GameScoreWidget extends StatelessWidget { ...@@ -37,7 +36,21 @@ class GameScoreWidget extends StatelessWidget {
), ),
), ),
width: 100, 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 { ...@@ -33,16 +33,16 @@ class GameSeedsWidget extends StatelessWidget {
[-20, 0], // 6 [-20, 0], // 6
[-10, -17], // 7 [-10, -17], // 7
[0, -34], // 8 [0, -34], // 8
[21, -34], // 9 [20, -34], // 9
[30, -16], // 10 [30, -17], // 10
[40, 0], // 11 [40, 0], // 11
[30, -18], // 12 [30, 17], // 12
[20, 35], // 13 [20, 34], // 13
[0, 35], // 14 [0, 34], // 14
[-20, 35], // 15 [-20, 34], // 15
[-30, 18], // 16 [-30, 17], // 16
[-38, 0], // 17 [-40, 0], // 17
[-30, -16], // 18 [-30, -17], // 18
[-20, -34], // 19 [-20, -34], // 19
]; ];
......
...@@ -3,7 +3,7 @@ description: Awale game ...@@ -3,7 +3,7 @@ description: Awale game
publish_to: "none" publish_to: "none"
version: 0.0.7+7 version: 0.0.8+8
environment: environment:
sdk: "^3.0.0" 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