Last active
November 14, 2020 21:20
-
-
Save AlabasterAxe/6075f308ad18932ce298e61bde0a6d94 to your computer and use it in GitHub Desktop.
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
AnimatedBuilder( | |
animation: cardSwipeAnimationController, | |
builder: (context, snapshot) { | |
Offset translateOffset = Offset.fromDirection(direction, cardAnimationController.value); | |
return Transform.translate( | |
offset: Offset(translateOffset.dx, 0), | |
child: Card( | |
child: Center( | |
child: Text("${widget.displayNumber}", | |
style: TextStyle(fontSize: 40))))); | |
}, | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment