搜尋套件、儲存庫與 APP 分類

stories_for_flutter 封面
套件詳情v1.3.3

stories_for_flutter

類似於 Instagram 的動態或類似於 WhatsApp 的狀態,適用於 Flutter 的高度可自訂動態套件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
146
喜歡數
97
Pub 分數
140

安裝套件

flutter pub add stories_for_flutter

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個高度可自訂的 Flutter 套件,讓開發者能在應用程式中實作類似 Instagram 的故事或 WhatsApp 式狀態功能。支援順暢過渡、滑動導航,以及自訂故事內容,例如圖片、影片與文字。此套件專為跨平台使用設計,可在 Android、iOS、Web、macOS、Windows 與 Linux 上順暢運行。透過彈性樣式與事件回呼,可完全掌控故事體驗。非常適合社交應用、即時通訊平台,或任何需要動態、互動式故事資訊流的應用。

適用情境

  • 社群媒體應用
  • 訊息平台
  • 使用者資料亮點
  • 互動內容推送
  • 事件倒計時
  • 品牌敘事

主要特色

  • 可滑動的故事導航
  • 可自定的故事UI
  • 支援圖片和影片
  • 跨平台相容性
  • 故事進度事件回調
  • 可擴展的設計,帶有主題

適合對象

  • 開發社交功能的開發者
  • 需要使用者參與工具的應用程式
  • 包含多媒體故事內容的項目
  • 希望擁有可重複使用的故事組件的團隊
  • Flutter 應用針對多個平台

使用建議

  • 需要小心處理大型媒體資產
  • 可能需要對長故事列表進行優化
  • 自定樣式需要熟悉 Flutter 小部件
  • 有限的內建分析或追蹤
  • 不適合用於簡單的靜態內容顯示

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Stories for Flutter

Visit on pub.dev.

A customizable flutter package that allows you to use Instagram like stories, or WhastApp like statuses in your Flutter app easily, made without using external dependencies.

Screenshots

Using the package

Step 1: Import the package.

import  'package:stories_for_flutter/stories_for_flutter.dart';

Step 2: Call the stories plugin and use it. Can give Scaffold to each page, making it highly customizable.

  Stories(
    storyItemList: [
      // First group of stories
      StoryItem(
          name: "First Story", // Name of first story
          thumbnail: // Add icon to first story
          stories: [
            Page1(),
            Page2(),
          ]),
      // Second story group
      StoryItem(
          name: "Second Story", 
          thumbnail: // Add icon to first story
        stories: [
          Page1(),
          Page2(),
          Page3()
        ],
      ),
    ],
  );

Example:

Stories(
    displayProgress: true,
    storyItemList: [
      // First group of stories
      StoryItem(
          name: "First Story",
          thumbnail: NetworkImage(
            "https://assets.materialup.com/uploads/82eae29e-33b7-4ff7-be10-df432402b2b6/preview",
          ),
          stories: [
            // First story
            Scaffold(
              body: Container(
                decoration: BoxDecoration(
                  image: DecorationImage(
                    fit: BoxFit.cover,
                    image: NetworkImage(
                      "https://wallpaperaccess.com/full/16568.png",
                    ),
                  ),
                ),
              ),
            ),
            // Second story in first group
            Scaffold(
              body: Center(
                child: Text(
                  "Second story in first group !",
                  style: TextStyle(
                    color: Color(0xff777777),
                    fontSize: 25,
                  ),
                ),
              ),
            ),
          ]),
      // Second story group
      StoryItem(
        name: "2nd",
        thumbnail: NetworkImage(
          "https://www.shareicon.net/data/512x512/2017/03/29/881758_cup_512x512.png",
        ),
        stories: [
          Scaffold(
            body: Center(
              child: Text(
                "That's it, Folks !",
                style: TextStyle(
                  color: Color(0xff777777),
                  fontSize: 25,
                ),
              ),
            ),
          ),
        ],
      ),
    ],
  );

所屬分類

依賴

依賴清單 2 項

  • plugin_platform_interface^2.0.2
  • web^1.1.1

原始碼儲存庫

使用此套件的專案

暫無相關資料。