Skip to content

Commit 4788219

Browse files
committed
Added easing
1 parent d9e1f77 commit 4788219

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/books/books.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ class _BookWidgetState extends State<BookWidget>
109109
duration: const Duration(milliseconds: 500),
110110
vsync: this,
111111
);
112-
_animation = Tween<double>(begin: -pi / 2, end: 0).animate(_controller);
112+
_animation = Tween<double>(begin: -pi / 2, end: 0)
113+
.chain(CurveTween(curve: Curves.easeInOut))
114+
.animate(_controller);
113115
_updateAnimationState();
114116
}
115117

0 commit comments

Comments
 (0)