story_view
0.16.6, released a year ago by degreat.co.uk
Display WhatsApp & Instagram-like stories or inline feeds with playback gestures.
Quiet but busy
What it does
Displays customizable stories containing text, images, GIFs, and videos with built-in navigation gestures like pause, forward, and rewind. It can be used fullscreen or inline within lists and columns.
AI-written summary of version 0.16.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to build Instagram or WhatsApp style stories into your application.
- You want to display inline story items inside lists or columns like a news app.
Skip it when
- You require complex social network backend features; this package only handles the UI and playback viewing component.
Strengths
- Supports still images, GIFs, and video playback with caching
- Includes touch gestures for pause, rewind, and forward out of the box
- Provides animated progress indicators for each story item
Weaknesses
- Limited to story viewing components and may require custom UI styling to match specific design systems.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
final controller = StoryController();
@override
Widget build(context) {
List<StoryItem> storyItems = [
StoryItem.text(title: "Hello", backgroundColor: Colors.red),
StoryItem.pageImage(url: "...", controller: controller),
];
return StoryView(
storyItems,
controller: controller,
repeat: true,
onStoryShow: (s) {},
onComplete: () {},
);
}Works with
Packages commonly used together with story_view: ones it builds on, ones built on it, and its own family.
- rxdartstory_view depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- flutter_cache_managerstory_view depends on itGeneric cache manager for saving web files and cache info on device storage.
- video_playerstory_view depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.