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

Improve some UI

parent 375f7369
No related branches found
No related tags found
1 merge request!26Resolve "Improve some UI"
Pipeline #5864 passed
org.gradle.jvmargs=-Xmx1536M org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
app.versionName=1.0.22 app.versionName=1.0.23
app.versionCode=23 app.versionCode=24
Improve some UI.
Améliorations visuelles.
...@@ -20,8 +20,11 @@ class GameBottomWidget extends StatelessWidget { ...@@ -20,8 +20,11 @@ class GameBottomWidget extends StatelessWidget {
for (int value = 1; value <= values; value++) { for (int value = 1; value <= values; value++) {
final String assetName = final String assetName =
'assets/skins/${currentGame.globalSettings.skin}_${currentGame.pairsFound.contains(value) ? value.toString() : 'unknown'}.png'; 'assets/skins/${currentGame.globalSettings.skin}_${currentGame.pairsFound.contains(value) ? value.toString() : 'unknown'}.png';
items.add(Image( items.add(Padding(
padding: const EdgeInsets.all(2),
child: Image(
image: AssetImage(assetName), image: AssetImage(assetName),
),
)); ));
} }
......
...@@ -36,8 +36,19 @@ class GameTileWidget extends StatelessWidget { ...@@ -36,8 +36,19 @@ class GameTileWidget extends StatelessWidget {
BlocProvider.of<GameCubit>(context).tapOnTile(tileIndex); BlocProvider.of<GameCubit>(context).tapOnTile(tileIndex);
} }
}, },
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 100),
transitionBuilder: (Widget child, Animation<double> animation) {
return ScaleTransition(
scale: animation,
child: child,
);
},
child: Image( child: Image(
image: AssetImage(assetName), image: AssetImage(assetName),
fit: BoxFit.fill,
key: ValueKey<int>(assetName.hashCode),
),
), ),
), ),
), ),
......
...@@ -3,7 +3,7 @@ description: A simple and classic memory game. ...@@ -3,7 +3,7 @@ description: A simple and classic memory game.
publish_to: "none" publish_to: "none"
version: 1.0.22+23 version: 1.0.23+24
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