Skip to content

Commit 1b5d022

Browse files
committed
Scale transition is wrapped with Slide transition
1 parent fe06501 commit 1b5d022

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/stackView.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ class _MainActivityState extends State<MainActivity> {
4646
child: Stack(
4747
children: <Widget>[
4848
_backView(_theme),
49-
ScaleTransition(scale: _getScaleAnimation(constraint),child: _frontView(),)
49+
SlideTransition(
50+
position: _getSlideAnimation(constraint),
51+
child: ScaleTransition(
52+
scale: _getScaleAnimation(constraint),child: _frontView(),))
5053
// SlideTransition(
5154
// position: _getSlideAnimation(constraint), child: _frontView()),
5255
],

0 commit comments

Comments
 (0)