-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfce706
commit a3a2960
Showing
12 changed files
with
77 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ enum AnimationType { | |
flipInY, | ||
flipInX, | ||
landing, | ||
size, | ||
scaleIn, | ||
scaleInTop, | ||
scaleInBottom, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import '../../animated_reorderable_list.dart'; | ||
|
||
class SizeAnimation extends AnimationEffect<double> { | ||
static const double beginValue = 0.0; | ||
static const double endValue = 1.0; | ||
static const double alignmentValue = 0.0; | ||
final double? begin; | ||
final double? end; | ||
final Axis? axis; | ||
final double? axisAlignment; | ||
|
||
SizeAnimation({super.delay, super.duration, super.curve, | ||
this.begin, this.end, | ||
this.axis, | ||
this.axisAlignment}); | ||
|
||
@override | ||
Widget build(BuildContext context, Widget child, Animation<double> animation, | ||
EffectEntry entry) { | ||
final Animation<double> sizeFactor = | ||
buildAnimation(entry, begin: begin ?? beginValue, end: end ?? endValue) | ||
.animate(animation); | ||
return Align( | ||
child: SizeTransition( | ||
sizeFactor: sizeFactor, | ||
axis: axis??Axis.horizontal, | ||
axisAlignment: axisAlignment?? alignmentValue, | ||
child: child, | ||
), | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters