diff --git a/android/gradle.properties b/android/gradle.properties index 85b94f88ee157e1d1b3cec184c8948902443d36f..65eed6426393974efb5a056ec44936d42b5ef2a1 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,5 +1,5 @@ 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 diff --git a/fastlane/metadata/android/en-US/changelogs/8.txt b/fastlane/metadata/android/en-US/changelogs/8.txt new file mode 100644 index 0000000000000000000000000000000000000000..3828692978a57925222cb242693860cc6516f98a --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/8.txt @@ -0,0 +1 @@ +Fix seeds display. diff --git a/fastlane/metadata/android/fr-FR/changelogs/8.txt b/fastlane/metadata/android/fr-FR/changelogs/8.txt new file mode 100644 index 0000000000000000000000000000000000000000..b6d1045e5d8a81e8e9231d375e19c7195d20fcde --- /dev/null +++ b/fastlane/metadata/android/fr-FR/changelogs/8.txt @@ -0,0 +1 @@ +Correction sur l'affichage des graines. diff --git a/lib/ui/widgets/game/game_score.dart b/lib/ui/widgets/game/game_score.dart index 9bea3b2474988c18703e76a653e19216fcdd19d5..bc55c5f5314afd011ec41b238d7602570aeea582 100644 --- a/lib/ui/widgets/game/game_score.dart +++ b/lib/ui/widgets/game/game_score.dart @@ -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, + ), + ), + ), + ), ); }, ); diff --git a/lib/ui/widgets/game/game_seeds.dart b/lib/ui/widgets/game/game_seeds.dart index 8a050667f62ccaa14d8b5621f59fba6e2e6998f6..21a92ceec1fa01c733a2e305bf860c5382676ca7 100644 --- a/lib/ui/widgets/game/game_seeds.dart +++ b/lib/ui/widgets/game/game_seeds.dart @@ -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 ]; diff --git a/pubspec.yaml b/pubspec.yaml index b13223f72cc479d0a9075d4a29141af48b5c0428..b49be71e1b70474b0b3be5df9d15667eae7b0e90 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"