Last active
September 1, 2018 06:02
-
-
Save letsar/d29fb3b50ba5fcddaa4369c6c48acda5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Widget _buildAnimation(BuildContext context, Widget child) { | |
return Container( | |
child: SkewTransition( | |
skew: skewTransform1, | |
child: SkewTransition( | |
skew: skewTransform2, | |
child: Container( | |
width: _kActionSize * 4, | |
height: 256.0, | |
color: Colors.black87, | |
child: Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
_buildListTile(context, 0), | |
Stack( | |
children: List.generate(_kCount, (i) { | |
return SlideTransition( | |
position: dyPositions1[i], | |
child: SlideTransition( | |
position: dxPositions[i], | |
child: SlideTransition( | |
position: dyPositions2[i], | |
child: _buildWidget(context, i), | |
), | |
), | |
); | |
}), | |
), | |
_buildListTile(context, 2), | |
], | |
), | |
), | |
), | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment