搜索插件、代码仓与 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

源码仓库

使用此插件的项目

暂无相关数据。