Skip to content

Instantly share code, notes, and snippets.

@letsar
Last active September 1, 2018 08:31
Show Gist options
  • Select an option

  • Save letsar/2abad6fcd5f9ccfa8c3cdf24b2de957f to your computer and use it in GitHub Desktop.

Select an option

Save letsar/2abad6fcd5f9ccfa8c3cdf24b2de957f 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,
children: <Widget>[
_buildListTile(context, 0),
SlideTransition(
position: dxPositions[2],
child: _buildWidget(context, 2),
),
_buildListTile(context, 2),
],
),
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment