Skip to content

Stories like Instagram or statuses like WhatsApp with the highly customizable stories for Flutter package.

License

Notifications You must be signed in to change notification settings

Docteur-Parfait/stories-for-flutter

This branch is 5 commits ahead of steevjames/stories-for-flutter:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a8a5bde · Aug 3, 2024

History

37 Commits
Aug 8, 2020
Feb 26, 2022
Aug 1, 2024
Feb 26, 2022
Aug 3, 2024
Sep 10, 2021
Feb 26, 2022
Feb 26, 2022
Feb 26, 2022
Feb 26, 2022
Feb 26, 2022
Aug 10, 2020
Aug 10, 2020
Sep 13, 2021
Aug 1, 2024
Aug 1, 2024
Sep 13, 2021

Repository files navigation

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,
                ),
              ),
            ),
          ),
        ],
      ),
    ],
  );

About

Stories like Instagram or statuses like WhatsApp with the highly customizable stories for Flutter package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 42.8%
  • C++ 29.4%
  • CMake 13.7%
  • HTML 6.0%
  • Kotlin 2.2%
  • C 2.0%
  • Other 3.9%