Created
September 1, 2018 08:38
-
-
Save letsar/c685b7271a4f7fdfeefcbf04135c22b4 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
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