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

Merge branch '26-improve-some-ui' into 'master'

Resolve "Improve some UI"

Closes #26

See merge request !26
parents 375f7369 4a66e21b
No related branches found
No related tags found
1 merge request!26Resolve "Improve some UI"
Pipeline #5867 passed
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
Improve some UI.
Améliorations visuelles.
......@@ -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),
),
));
}
......
......@@ -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),
),
),
),
),
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment