GithubHelp home page GithubHelp logo

dattran-pt19 / story_indicator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 247 KB

A package help make a autorun indicator like story.

License: Other

Java 1.96% Kotlin 0.43% Swift 4.57% Objective-C 2.25% Dart 29.13% CMake 33.20% C++ 14.77% C 3.48% HTML 6.44% Shell 3.77%

story_indicator's Introduction

Story Indicator

Features

  • Make automatically run Indicator like facebook story.
  • Can combine to the PageView to show banner. Alt Text

Installing

Add this to your package's pubspec.yaml file:

dependencies:
  story_indicator: ^latest

Import

import 'package:story_indicator/story_indicator.dart';

Usage

Use like a widget everywhere you want, you can see example in /example folder.

Container(
      padding: const EdgeInsets.all(24),
      child: StoryIndicator(
          itemCount: itemOfOnBoarding,
          currentIndex: currentIndex,
          highlightColor: Colors.red,
          indicatorSpacing: 8,
          interval: const Duration(seconds: 2)
      )
  )

Customize

You can custom some value to change indicator UI

Variable Description
itemCount Set number of indicators
currentIndex Set and get current indicator index
interval Set running interval of indicator
highlightColor Set highlight color of indicator
defaultColor Set default color of indicator
indicatorSpacing Set indicator spacing

Trần Đạt, Thank you!

story_indicator's People

Contributors

dattran-pt19 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.