Skip to content

dattran-pt19/story_indicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8e39802 · Feb 22, 2023

History

2 Commits
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023
Feb 22, 2023

Repository files navigation

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!

About

A package help make a autorun indicator like story.

Resources

License

Stars

Watchers

Forks

Packages

No packages published