Search packages, repositories and app categories

animated_book_widget cover
Package detailsv1.0.1

animated_book_widget

A Flutter package providing an interactive method to display content, resembling the experience of flipping through pages.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
267
Likes
68
Pub points
150

Install package

flutter pub add animated_book_widget

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The animated_book_widget package offers a visually engaging way to present content in Flutter, simulating the tactile experience of flipping through physical pages. It enables developers to create interactive, animated book-like interfaces with smooth transitions between pages. Ideal for digital storytelling, e-books, or educational apps, it enhances user engagement through realistic page-turning animations across multiple platforms. The package is designed for seamless integration and supports responsive layouts.

Use cases

  • Digital storybooks
  • Interactive e-learning modules
  • Portfolio presentations
  • Interactive guides
  • Multimedia content displays

Key features

  • Realistic page-flip animations
  • Cross-platform compatibility
  • Customizable page transitions
  • Support for scrollable content
  • Responsive design integration

Suitable for

  • Educational app developers
  • E-book creators
  • Interactive content designers
  • UI/UX designers focused on animation
  • Mobile-first application builders

Considerations

  • Higher memory usage with complex pages
  • Performance may vary on older devices
  • Requires careful layout optimization
  • Limited customization for non-page-based navigation
  • Best suited for content with discrete sections

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

banner

Flutter Animated Book Widget

build animated_book_widget

A Flutter package allows you to effortlessly create a animated book widget UI with dynamic content rendering.

Preview

Installation

Add animated_book_widget to your pubspec.yaml dependencies. And import it:

dependencies:
    animated_book_widget: <latest_version>

Import:

import 'package:animated_book_widget/animated_book_widget.dart';

How to use

AnimatedBookWidget(
  cover: _Cover,
  content: _Content,
  size: const Size.fromWidth(160),
);

Params

AnimatedBookWidget(
  cover: _Cover,
  content: _Content,
  size: const Size.fromWidth(160),
  padding: const EdgeInsets.only(right: 10),
  blurRadius: 8,
  spreadRadius: .1,
  backgroundBlurOffset: Offset.zero,
  backgroundColor: color.withOpacity(.5),
  backgroundShadowColor: color.withOpacity(.075),
  curve: Curves.linear,
  animationDuration: Duration(milliseconds: 500),
  reverseAnimationDuration: Duration(milliseconds: 500),
);

Builder

AnimatedBookWidget.builder(
  cover: _Cover,
  size: Size(200, 300),
  contentChild: _Content,
  contentBuilder: (context, animation, child) {
    return Transform(
      transform: Matrix4.identity()
        ..setEntry(3, 2, 0.001)
        ..rotateY(animation.value),
      alignment: Alignment.center,
      child: child,
    );
  },
);

Examples

Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.

Credit

  • This package's book animation is inspired from this Dribbble art.

Main Contributors


Brayan Cantos

diegoveloper

ecarlosdev

Roger Bacab

Paolo Joaquin Pinto

Daniel Coyula

Williams M. Torres

Awesome Mobile Libraries

License

MIT License

Copyright (c) 2024 D-velopers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Categories

Source repository

Projects using this package

No data available yet.