Skip to content

Commit ce8da34

Browse files
committed
+bug: Animation bugfix
1 parent dbfe936 commit ce8da34

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

lib/src/prioritized_indexed_stack/effects.dart

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ class QuickBackwardEffect extends AnimationEffect {
4949
final w = size.width * value;
5050
return [
5151
AnimationLayerEffect(transform: Matrix4.translationValues(-size.width + w, 0.0, 0.0)),
52-
AnimationLayerEffect(
53-
transform: Matrix4.translationValues(-size.width + w, 0.0, 0.0),
54-
),
5552
AnimationLayerEffect(
5653
opacity: 1.0 - value * 0.1,
5754
transform: Matrix4.translationValues(w * 0.5, 0.0, 0.0),
@@ -72,9 +69,6 @@ class QuickForwardEffect extends AnimationEffect {
7269
final w = size.width * value;
7370
return [
7471
AnimationLayerEffect(transform: Matrix4.translationValues(size.width - w, 0.0, 0.0)),
75-
AnimationLayerEffect(
76-
transform: Matrix4.translationValues(size.width - w, 0.0, 0.0),
77-
),
7872
AnimationLayerEffect(
7973
opacity: 1.0 - value * 0.1,
8074
transform: Matrix4.translationValues(-w * 0.5, 0.0, 0.0),
@@ -96,9 +90,6 @@ class SlideUpEffect extends AnimationEffect {
9690
final h = size.height * value;
9791
return [
9892
AnimationLayerEffect(transform: Matrix4.translationValues(0.0, size.height - h, 0.0)),
99-
AnimationLayerEffect(
100-
transform: Matrix4.translationValues(0.0, size.height - h, 0.0),
101-
),
10293
AnimationLayerEffect(
10394
opacity: 1.0 - value * 0.1,
10495
transform: Matrix4.translationValues(0.0, -h * 0.5, 0.0),
@@ -120,9 +111,6 @@ class SlideDownEffect extends AnimationEffect {
120111
final h = size.height * value;
121112
return [
122113
AnimationLayerEffect(transform: Matrix4.translationValues(0.0, -size.height + h, 0.0)),
123-
AnimationLayerEffect(
124-
transform: Matrix4.translationValues(0.0, -size.height + h, 0.0),
125-
),
126114
AnimationLayerEffect(
127115
opacity: 1.0 - value * 0.1,
128116
transform: Matrix4.translationValues(0.0, h * 0.5, 0.0),
@@ -143,9 +131,6 @@ class CupertinoEffect extends AnimationEffect {
143131
final w = size.width * value;
144132
return [
145133
AnimationLayerEffect(transform: Matrix4.translationValues(size.width - w, 0.0, 0.0)),
146-
AnimationLayerEffect(
147-
transform: Matrix4.translationValues(size.width - w, 0.0, 0.0),
148-
),
149134
AnimationLayerEffect(
150135
opacity: 1.0 - value * 0.1,
151136
transform: Matrix4.translationValues(-w * 0.5, 0.0, 0.0),
@@ -166,7 +151,6 @@ class MaterialEffect extends AnimationEffect {
166151
return (context, size, value) {
167152
final w = size.width * value;
168153
return [
169-
AnimationLayerEffect(transform: Matrix4.translationValues(size.width - w, 0.0, 0.0)),
170154
AnimationLayerEffect(transform: Matrix4.translationValues(size.width - w, 0.0, 0.0)),
171155
AnimationLayerEffect(
172156
opacity: 1.0 - value * 0.1,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
name: df_router
1414
description: A lightweight router designed for ease of use and efficient state management.
15-
version: 0.4.2
15+
version: 0.4.3
1616
repository: https://github.com/dev-cetera/df_router
1717
funding:
1818
- https://www.buymeacoffee.com/dev_cetera

0 commit comments

Comments
 (0)