All Projects → blackmann → Story_view

blackmann / Story_view

Licence: bsd-3-clause
Story view for apps with stories.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Story view

KotlinTestDemo
Using Kotlin For Tests in Android: demo project for the blog post
Stars: ✭ 23 (-90.09%)
Mutual labels:  andriod
Node Android
Run Node.js on Android by rewrite Node.js in Java
Stars: ✭ 576 (+148.28%)
Mutual labels:  andriod
Weibo
Android for weibo
Stars: ✭ 65 (-71.98%)
Mutual labels:  andriod
searchi
Demo of PagedListAdapter, PageKeyedDataSource, LiveData, ViewModel in Kotlin
Stars: ✭ 13 (-94.4%)
Mutual labels:  andriod
Intellij Generateallsetmethod
Intellij plugin to generate call to setter method value for class
Stars: ✭ 410 (+76.72%)
Mutual labels:  andriod
React Native Calendar Events
📆 React Native Module for iOS and Android Calendar Events
Stars: ✭ 702 (+202.59%)
Mutual labels:  andriod
flicker-flight-app
An App Used for Flight Ticket Purchasing and Management
Stars: ✭ 39 (-83.19%)
Mutual labels:  andriod
Androiddevelopmentsummary
安卓开发总结——附带VPN翻墙
Stars: ✭ 144 (-37.93%)
Mutual labels:  andriod
Xamarin.forms.googlemaps
Map library for Xamarin.Forms using Google maps API
Stars: ✭ 483 (+108.19%)
Mutual labels:  andriod
Jus
Flexible and Easy HTTP/REST Communication library for Java and Android
Stars: ✭ 55 (-76.29%)
Mutual labels:  andriod
Okhttp Rxhttp
🔥🔥🔥 Based on OkHttp encapsulation, support Kotlin Coroutines、RxJava2、RxJava3; 30s to get started.
Stars: ✭ 3,170 (+1266.38%)
Mutual labels:  andriod
Reactjs101
從零開始學 ReactJS(ReactJS 101)是一本希望讓初學者一看就懂的 React 中文入門教學書,由淺入深學習 ReactJS 生態系 (Flux, Redux, React Router, ImmutableJS, React Native, Relay/GraphQL etc.)。
Stars: ✭ 4,004 (+1625.86%)
Mutual labels:  andriod
Phonesploit
Using open Adb ports we can exploit a Andriod Device
Stars: ✭ 854 (+268.1%)
Mutual labels:  andriod
paybill-manager
Your personal finance manager
Stars: ✭ 46 (-80.17%)
Mutual labels:  andriod
Flutter lc im
一个简单、轻量可用于正式项目的 flutter 聊天插件。
Stars: ✭ 94 (-59.48%)
Mutual labels:  andriod
woapp
web模拟安卓操作系统,php开发,内置文件管理,电话,短信,拍照,用在树莓派上可做智能家居,视频监控,机顶盒等……
Stars: ✭ 22 (-90.52%)
Mutual labels:  andriod
Kovenant
Kovenant. Promises for Kotlin.
Stars: ✭ 657 (+183.19%)
Mutual labels:  andriod
Weathericonview
Weather Icon View for Android applications
Stars: ✭ 206 (-11.21%)
Mutual labels:  andriod
Vue Auto Puzzle
Jigsaw puzzle based on Vue(基于Vue的拼图小游戏,可自动拼图。还包含Weex版)
Stars: ✭ 127 (-45.26%)
Mutual labels:  andriod
React Native Uber Clone
Uber UI Clone in React Native
Stars: ✭ 35 (-84.91%)
Mutual labels:  andriod

story_view Pub

Story view for apps with stories.

👨‍🚀 Demo project here: storyexample

🍟 Watch video demo here: story_view demo Youtube

This a Flutter widget to display stories just like Whatsapp and Instagram. Can also be used inline/inside ListView or Column just like Google News app. Comes with gestures to pause, forward and go to previous page.

Features

🕹 Still image, GIF and video support (with caching enabled)

📍 Gesture for pause, rewind and forward

⚜️ Caption for each story item

🎈 Animated progress indicator for each story item

And useful callback to perform meta functionalities including vertical swipe gestures.

Installation

To use this plugin, add story_view as a dependency in your pubspec.yaml file.

Usage

Import the package into your code

import "package:story_view/story_view.dart";

Look inside examples/example.dart on how to use this library. You can copy and paste the code into your main.dart and run to have a quick look.

Basics

Use StoryView to add stories to screen or view heirarchy. StoryView requires a list of StoryItem, each of which describes the view to be displayed on each story page, duration and so forth. This gives you the freedom to customize each page of the story.

There are shorthands provided to create common pages.

StoryItem.text is a shorthand to create a story page that displays only text.

StoryItem.pageImage creates a story item to display images with a caption.

StoryItem.inlineImage creates a story item that is intended to be displayed in a linear view hierarchy like List or Column

🍭 Both .inlineImage and pageImage support animated GIFs.

StoryItem.pageVideo creates a page story item with video media. Just provide your video url and get going.

Story controller, loaders and GIF support

While images load, it'll be a better experience to pause the stories until it's done. To achieve this effect, create a global instance of StoryController and use the shorthand StoryItem.pageImage or StoryItem.inlineImage while passing the same controller instance to it.

...
final controller = StoryController();

@override
Widget build(context) {
  List<StoryItem> storyItems = [
    StoryItem.text(...),
    StoryItem.pageImage(...),
    StoryItem.pageImage(...),
    StoryItem.pageVideo(
      ...,
      controller: controller,
    )
  ]; // your list of stories

  return StoryView(
    storyItems,
    controller: controller, // pass controller here too
    repeat: true, // should the stories be slid forever
    onStoryShow: (s) {notifyServer(s)},
    onComplete: () {},
    onVerticalSwipeComplete: (direction) {
      if (direction == Direction.down) {
        Navigator.pop(context);
      }
    } // To disable vertical swipe gestures, ignore this parameter.
      // Preferrably for inline story view.
  )
}

🍭 Now, tell your users some stories.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].