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

Merge branch '19-add-animations-on-cells' into 'master'

Resolve "Add animations on cells"

Closes #19

See merge request !19
parents 90be1d5b 15dfe874
No related branches found
No related tags found
1 merge request!19Resolve "Add animations on cells"
Pipeline #1958 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.17 app.versionName=0.0.18
app.versionCode=17 app.versionCode=18
Add animations on cells when value or state changes
Ajout d'animations sur les cellules au changement de valeur / état
...@@ -32,9 +32,16 @@ class Cell { ...@@ -32,9 +32,16 @@ class Cell {
), ),
), ),
child: GestureDetector( child: GestureDetector(
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 100),
transitionBuilder: (Widget child, Animation<double> animation) {
return ScaleTransition(child: child, scale: animation);
},
child: Image( child: Image(
image: AssetImage(imageAsset), image: AssetImage(imageAsset),
fit: BoxFit.fill, fit: BoxFit.fill,
key: ValueKey<int>(imageAsset.hashCode),
),
), ),
onTap: () { onTap: () {
if (!myProvider.isBoardMined) { if (!myProvider.isBoardMined) {
......
...@@ -7,7 +7,7 @@ packages: ...@@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.7.0" version: "2.8.1"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
...@@ -251,7 +251,7 @@ packages: ...@@ -251,7 +251,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.1" version: "0.4.2"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment