story_view_flutter 0.1.1
story_view_flutter: ^0.1.1 copied to clipboard
Display stories just like Whatsapp & Instagram. Can be used inline/inside ListView or Column just like Google News app. Comes with gestures to pause, forward & go to previous page.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add story_view_flutterThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
story_view_flutter: ^0.1.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:story_view_flutter/controller/story_controller.dart';
import 'package:story_view_flutter/story_view.dart';
import 'package:story_view_flutter/utils.dart';
import 'package:story_view_flutter/widgets/story_image.dart';
import 'package:story_view_flutter/widgets/story_video.dart';
import 'package:story_view_flutter/widgets/story_view.dart';