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

advstory 封面
插件详情v0.2.1

advstory

一个高级且完整的故事查看器。支持图片、视频、自定义小部件内容、手势、拦截器、监听器、操作器等众多功能。

AndroidiOSmacOS
近 30 天下载
2940
喜欢数
119
Pub 分数
130

安装插件

flutter pub add advstory

插件介绍

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

advstory 是一个功能全面的 Flutter 故事查看器,支持图片、视频、自定义组件和交互手势。它提供拦截器、监听器和内容操作器等高级功能,使开发者能够创建丰富且动态的叙事体验。专为跨平台设计,可在 Android、iOS 和 macOS 上无缝运行。该包提供了对故事流程和用户交互的精细控制,非常适合需要沉浸式叙事界面的应用程序。

适合场景

  • 互动故事推送
  • 用户生成内容显示
  • 教育多媒体演示
  • 社交媒体故事功能
  • 应用内教程,包含丰富媒体

主要特点

  • 支持图片和视频
  • 自定义小部件集成
  • 手势识别
  • 拦截器和监听器
  • 内容操作器
  • 跨平台兼容性

适合对象

  • 开发基于故事的应用程序的开发者
  • 需要丰富媒体叙事的应用程序
  • 需要手势驱动导航的项目
  • 希望拥有可自定义故事流程的团队
  • 教育或社交平台

使用建议

  • 需要仔细处理大型媒体资产
  • 可能需要针对复杂内容进行性能优化
  • 依赖于正确的资产管理
  • 除了基本设置外,文档有限
  • 管理多个故事层的潜在复杂性

原始 README

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

"Buy Me A Coffee" pub package GitHub issues-closed

AdvStory 📸

Quite simple & Quite advanced

🚀 Advanced Story viewer for Flutter. Create and customize slideshow presentations similar to Instagram, TikTok and Snapchat stories. Supports image, video and custom story contents. Full control over stories for developer and smooth experience for users.

Features

➡️ High performance, minimum delays, preload and cache enabled. Works using builders, provides flexibility and lazy loading.

➡️ Story view can be in any shape, size and position or full-screen.

➡️ Predefined story types for images, videos and simple contents. But not limited to these types, allows you to use base class of predefined widgets. This literally makes the options endless.

➡️ Gestures for skip story, skip content, pause, resume and close.

➡️ Interceptors that block events and manipulate the story flow without being noticed by the app user.

➡️ A functional controller for listening interactions and skip stories/contents, pause, play and more...

➡️ Predefined highly customizable story tray. But you are not limited to that, you can create your own non-animated or animated trays, AdvStory handles animation.

➡️ Header and footer areas for predefined stories with customization option specific to a predefined story content.

➡️ Object based, you can create as many story views as you want within the same application.

➡️ Well documented, go to docs:

  • docs

What can I do using AdvStory?

  • Quite simple: when you don't need much customization, a fully functional story view is just 8 lines of code.
AdvStory(
  storyCount: 5,
  storyBuilder: (storyIndex) => Story(
    contentCount: 10,
    contentBuilder: (contentIndex) => const ImageContent(url: ""),
  ),
  trayBuilder: (index) => AdvStoryTray(url: ""),
);
  • Quite advanced: when you need more you can,
    • create stories asynchronously in storyBuilder, send some requests to your server!
    • create different story trays and tray animations for each story, trays can be any widget you want.
    • create different footer & header areas for each story contents.
    • create contents with different skip durations.
    • create your own contents, AdvStory provides ways to you for caching media and handling story logic.
    • disable gestures, jump to a position, hide and show header/footer areas, pause and resume story via controller.
    • block events and call your own callbacks instead default story flow actions via interceptor.
    • create story view using AdvStory.player to define opening animations, custom shape, size...
    • customize tray list, story progress indicator, loading screen.

If you find AdvStory useful, you can hit the like button and give a star to project on Github to motivate me or treat me with coffee to help me take time to develop this package.


🤝🏼 Supporters & Sponsors

Roadmap
Status Goal
🚀 Custom advanced contents
❌ Custom gestures
🚀 Decouple trays & player
❌ Web & Windows & MacOs & Linux support

Some screenshots:

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。