diff --git a/android/gradle.properties b/android/gradle.properties index dcf12984c36f3453d790ee3d76b4953ce8cb7158..33c43775a7db70e59256cad64931ad4fc01c2c7c 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=1.0.22 -app.versionCode=23 +app.versionName=1.0.23 +app.versionCode=24 diff --git a/fastlane/metadata/android/en-US/changelogs/24.txt b/fastlane/metadata/android/en-US/changelogs/24.txt new file mode 100644 index 0000000000000000000000000000000000000000..567e2152b8a050ea148ac5c01704d306ec390603 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/24.txt @@ -0,0 +1 @@ +Improve some UI. diff --git a/fastlane/metadata/android/fr-FR/changelogs/24.txt b/fastlane/metadata/android/fr-FR/changelogs/24.txt new file mode 100644 index 0000000000000000000000000000000000000000..517652a7ae85d82f9e589d82d06a5cf495cdd08b --- /dev/null +++ b/fastlane/metadata/android/fr-FR/changelogs/24.txt @@ -0,0 +1 @@ +Améliorations visuelles. diff --git a/lib/ui/widgets/game/game_bottom.dart b/lib/ui/widgets/game/game_bottom.dart index 12efb1179726eb52eafd36b81fc744d05d865096..6ab3a21323e220b452c1e247763d83a28b994fc9 100644 --- a/lib/ui/widgets/game/game_bottom.dart +++ b/lib/ui/widgets/game/game_bottom.dart @@ -20,8 +20,11 @@ class GameBottomWidget extends StatelessWidget { for (int value = 1; value <= values; value++) { final String assetName = 'assets/skins/${currentGame.globalSettings.skin}_${currentGame.pairsFound.contains(value) ? value.toString() : 'unknown'}.png'; - items.add(Image( - image: AssetImage(assetName), + items.add(Padding( + padding: const EdgeInsets.all(2), + child: Image( + image: AssetImage(assetName), + ), )); } diff --git a/lib/ui/widgets/game/game_tile.dart b/lib/ui/widgets/game/game_tile.dart index fc6419c860a88d9730ba3cc0caa70248577790ba..a7487091eeb5ccbaba1b4e919cf45a7e182a4310 100644 --- a/lib/ui/widgets/game/game_tile.dart +++ b/lib/ui/widgets/game/game_tile.dart @@ -36,8 +36,19 @@ class GameTileWidget extends StatelessWidget { BlocProvider.of<GameCubit>(context).tapOnTile(tileIndex); } }, - child: Image( - image: AssetImage(assetName), + child: AnimatedSwitcher( + duration: const Duration(milliseconds: 100), + transitionBuilder: (Widget child, Animation<double> animation) { + return ScaleTransition( + scale: animation, + child: child, + ); + }, + child: Image( + image: AssetImage(assetName), + fit: BoxFit.fill, + key: ValueKey<int>(assetName.hashCode), + ), ), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index 00303556d71976540cf743be0080c204efa29c7a..d6e42a29505067f911131b7cd301a00078abc8d9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A simple and classic memory game. publish_to: "none" -version: 1.0.22+23 +version: 1.0.23+24 environment: sdk: "^3.0.0"