complete_story_view 0.0.1 copy "complete_story_view: ^0.0.1" to clipboard
complete_story_view: ^0.0.1 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',
      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(
        storyViewList: [
          StoryView(
            progressBarHeight: 8.0,
            storyChildren: [
              StoryWidget(url: "https://picsum.photos/id/237/536/354.jpg"),
              StoryWidget(
                url:
                    "https://www.shutterstock.com/image-photo/demo-text-message-magnifying-glass-600nw-2491336635.jpg",
              ),
              // StoryWidget(
              //   url:
              //       "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
              // ),
            ],
          ),
          StoryView(
            progressBarHeight: 8.0,
            storyChildren: [
              StoryWidget(
                url:
                    "https://www.shutterstock.com/image-photo/demo-text-message-magnifying-glass-600nw-2491336635.jpg",
              ),
              StoryWidget(url: "https://picsum.photos/id/237/536/354.jpg"),
            ],
          ),
        ],
      ),
    );
  }
}
5
likes
0
points
311
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

License

unknown (license)

Dependencies

cached_network_image, flutter, provider, video_player

More

Packages that depend on complete_story_view