搜索插件、代码仓与 APP 分类

animated_book_widget 封面
插件详情v1.0.1

animated_book_widget

一个Flutter包,提供一种交互式显示内容的方法,类似于翻页的体验。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
267
喜欢数
68
Pub 分数
150

安装插件

flutter pub add animated_book_widget

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

animated_book_widget 包为 Flutter 提供了一种视觉上引人入胜的内容展示方式,模拟了翻阅实体书页的触感体验。它使开发者能够创建具有平滑页面切换效果的交互式、动画化书本界面。适用于数字故事讲述、电子书或教育类应用,通过跨多个平台的真实翻页动画提升用户参与度。该包设计用于无缝集成,并支持响应式布局。

适合场景

  • 数字故事书
  • 互动式电子学习模块
  • 投资组合演示
  • 交互式指南
  • 多媒体内容显示

主要特点

  • 逼真的翻页动画
  • 跨平台兼容性
  • 可自定义的页面过渡
  • 对可滚动内容的支持
  • 响应式设计集成

适合对象

  • 教育类应用开发者
  • 电子书创作者
  • 交互内容设计师
  • 专注于动画的UI/UX设计师
  • 以移动设备为优先的应用程序构建者

使用建议

  • 复杂页面的内存使用量更高
  • 性能在旧设备上可能有所不同
  • 需要仔细的布局优化
  • 针对非页面导航的自定义功能有限
  • 最适合包含离散部分的内容

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。