Skip to content

Instantly share code, notes, and snippets.

@letsar
Created September 1, 2018 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letsar/c685b7271a4f7fdfeefcbf04135c22b4 to your computer and use it in GitHub Desktop.
Save letsar/c685b7271a4f7fdfeefcbf04135c22b4 to your computer and use it in GitHub Desktop.
const _kDuration = const Duration(milliseconds: 2000);
const _kAnimInterval03 = const Interval(.00, .90);
...
Widget _buildAnimation(BuildContext context, Widget child) {
return Container(
child: Container(
width: _kActionSize * 4,
height: 256.0,
color: Colors.black87,
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: List.generate(_kCount, (i) {
return SlideTransition(
position: dxPositions[2 - i],
child: _buildWidget(context, 2 - i),
);
}),
),
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment