WosLovesLife / flutter_flip_view

BSD 2-Clause "Simplified" License
57 stars 15 forks source link

rotaintion from top or bottom #3

Closed pishguy closed 5 years ago

pishguy commented 5 years ago

how about rotation from top to bottom or bottom to top

WosLovesLife commented 5 years ago

Use the argument "goBackDirection" and "goBackDirection"

There is an example:

FlipView(
  animationController: _curvedAnimation,
  front: _buildCard('A', () => _flip(true)),
  back: _buildCard('B', () => _flip(false)),
  goBackDirection: AxisDirection.up,
  goFrontDirection: AxisDirection.down,
)