Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

CaiJingLong/flutter_page_indicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pub package

Preview

image

image

Install

see

  1. Depend on itAdd this to your package's pubspec.yaml file:
dependencies:page_indicator:^0.3.0
  1. Install it

You can install packages from the command line:

with Flutter:

flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

  1. Import itNow in your Dart code, you can use:
import'package:page_indicator/page_indicator.dart';

Usage

see example file

or

PageIndicatorContainer(  child:PageView(    children:<Widget>[Text("1"),Text('2'),Text('3'),Text('4'),    ],    controller: controller,  ),  align:IndicatorAlign.bottom,  length:4,  indicatorSpace:20.0,  padding:constEdgeInsets.all(10),  indicatorColor:Colors.white,  indicatorSelectorColor:Colors.blue,  shape:IndicatorShape.circle(size:12),// shape: IndicatorShape.roundRectangleShape(size: Size.square(12),cornerSize: Size.square(3)),// shape: IndicatorShape.oval(size: Size(12, 8)),}

Force refersh state

final key=GlobalKey<PageContainerState>();PageIndicatorContainer(  key: key,// other ...);// force refershkey.currentState.forceRefreshState();

Migration guide

0.1.x => 0.2.x

PageIndicatorContainer(  ...--  size:12.0,++  shape:IndicatorShape.circle(size:12),)

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp