Skip to content

Instantly share code, notes, and snippets.

@letsar
Last active September 1, 2018 06:02
Show Gist options
  • Save letsar/d29fb3b50ba5fcddaa4369c6c48acda5 to your computer and use it in GitHub Desktop.
Save letsar/d29fb3b50ba5fcddaa4369c6c48acda5 to your computer and use it in GitHub Desktop.
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