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

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

Resolve "Add animations on cells"

Closes #54

See merge request !48
parents 9b608899 208e88f2
No related branches found
No related tags found
1 merge request!48Resolve "Add animations on cells"
Pipeline #1941 passed
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
app.versionName=0.0.43
app.versionCode=43
app.versionName=0.0.44
app.versionCode=44
Add cell animation on value change
Ajout d'animation de cellule au changement de valeur
......@@ -30,9 +30,16 @@ class Cell {
border: borders,
),
child: GestureDetector(
child: Image(
image: AssetImage(imageAsset),
fit: BoxFit.fill
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 100),
transitionBuilder: (Widget child, Animation<double> animation) {
return ScaleTransition(child: child, scale: animation);
},
child: Image(
image: AssetImage(imageAsset),
fit: BoxFit.fill,
key: ValueKey<int>(this.value),
),
),
onTap: () {
if (col != null && row != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment