搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。