BookAnimationController constructor

BookAnimationController({
  1. required AppState appState,
  2. required PdfLoader pdfLoader,
  3. 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),
  );
}