complete_story_view 0.0.4 copy "complete_story_view: ^0.0.4" to clipboard
complete_story_view: ^0.0.4 copied to clipboard

A Flutter package for creating smooth, full-screen story views with customizable animations and controls.

example/lib/main.dart

import 'package:complete_story_view/story_package.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: StoryListWidget(
        imageStoryDuration: 4000,
        onComplete: () {
          //
        },
        storyViewList: [
          StoryView(
            progressBarHeight: 8.0,
            storyChildren: [
              StoryWidget(url: "", storyType: StoryType.networkImage),
              StoryWidget(url: "", storyType: StoryType.networkImage),
            ],
          ),
          StoryView(
            progressBarHeight: 8.0,
            storyChildren: [
              StoryWidget(url: "", storyType: StoryType.networkVideo),
              StoryWidget(url: "", storyType: StoryType.networkImage),
              StoryWidget(url: "", storyType: StoryType.networkImage),
            ],
          ),
          StoryView(
            progressBarHeight: 8.0,
            storyChildren: [
              StoryWidget(url: "", storyType: StoryType.networkImage),
              StoryWidget(url: "", storyType: StoryType.networkImage),
            ],
          ),
        ],
      ),
    );
  }
}
5
likes
140
points
335
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for creating smooth, full-screen story views with customizable animations and controls.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, video_player

More

Packages that depend on complete_story_view