GIfatahTH / animator

A Flutter library that makes animation easer. It allows for separation of animation setup from the User Interface.
BSD 3-Clause "New" or "Revised" License
227 stars 28 forks source link

Animator resize vertical animation #36

Closed pishguy closed 3 years ago

pishguy commented 4 years ago

this below screen video is what i need to implementing that, i think i should use Skew animation to do that, but i'm not sure. i try to use below code to implementing that but it's not correct

enter image description here

my mean is visible 5 icons after change background to white in this demo

my code:

return Animator(
  tween: Tween<double>(begin: 1, end: 0.5),
  duration: Duration(seconds: 2),
  cycles: 0,
  builder: (anim) => Transform(
    transform: Matrix4.skewY(anim.value),
    child: Container(
      decoration: BoxDecoration(
        border: Border.all(color: Colors.blue),
      ),
      child: FlutterLogo(
        size: 50,
      ),
    ),
  ),
);