BookAnimationController constructor
BookAnimationController({
- required AppState appState,
- required PdfLoader pdfLoader,
- required TickerProvider vsync,
Implementation
BookAnimationController({
required this.appState,
required this.pdfLoader,
required TickerProvider vsync,
}) {
_animationController = AnimationController(
vsync: vsync,
duration: const Duration(milliseconds: 1200),
);
_rotationAnimation = Tween<double>(begin: 0.0, end: 1.0).animate(
CurvedAnimation(
parent: _animationController, curve: Curves.fastOutSlowIn),
);
}