worm_indicator
所属分类:WEB开发
开发工具:Dart
文件大小:0KB
下载次数:0
上传日期:2021-03-04 11:41:58
上 传 者:
sh-1993
说明: Flutter PageView指示器具有蠕虫动画,
(A Flutter PageView Indicator has Worm animation,)
文件列表:
.idea/ (0, 2021-03-04)
.idea/encodings.xml (135, 2021-03-04)
.idea/libraries/ (0, 2021-03-04)
.idea/libraries/Dart_Packages.xml (7239, 2021-03-04)
.idea/libraries/Dart_SDK.xml (1040, 2021-03-04)
.idea/libraries/Flutter_Plugins.xml (173, 2021-03-04)
.idea/misc.xml (163, 2021-03-04)
.idea/modules.xml (269, 2021-03-04)
.idea/vcs.xml (180, 2021-03-04)
.idea/workspace.xml (20351, 2021-03-04)
.metadata (309, 2021-03-04)
.vscode/ (0, 2021-03-04)
.vscode/launch.json (373, 2021-03-04)
.vscode/settings.json (251, 2021-03-04)
CHANGELOG.md (924, 2021-03-04)
LICENSE (29, 2021-03-04)
android/ (0, 2021-03-04)
android/app/ (0, 2021-03-04)
android/app/src/ (0, 2021-03-04)
android/app/src/main/ (0, 2021-03-04)
android/app/src/main/java/ (0, 2021-03-04)
android/app/src/main/java/io/ (0, 2021-03-04)
android/app/src/main/java/io/flutter/ (0, 2021-03-04)
android/app/src/main/java/io/flutter/plugins/ (0, 2021-03-04)
android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java (559, 2021-03-04)
android/local.properties (103, 2021-03-04)
example.gif (2011992, 2021-03-04)
example/ (0, 2021-03-04)
example/.metadata (305, 2021-03-04)
example/android/ (0, 2021-03-04)
example/android/app/ (0, 2021-03-04)
example/android/app/build.gradle (1868, 2021-03-04)
example/android/app/src/ (0, 2021-03-04)
example/android/app/src/main/ (0, 2021-03-04)
example/android/app/src/main/AndroidManifest.xml (1983, 2021-03-04)
example/android/app/src/main/java/ (0, 2021-03-04)
... ...
# Worm Indicator
A Flutter PageView indicator insprired by worm animation. It can be easily integrated with any Flutter PageView. Pull requests are welcome
## Features
- Use with PageView to display scroll progress
## Getting Started
Make sure you add the lib dependency in your flutter project.
```
dependencies:
worm_indicator: 0.3.0
```
Then you should run `flutter packages get` to update your packages in your IDE.
## Example Project
Checkout the project inside `example` folder.
Screenshot:
![screenshot](https://github.com/phuchuynhStrong/worm_indicator/raw/master/example.gif "Screenshots")
## Usage
`Circle` and `Square` `DotShape` need size. `Rectangle` `DotShape` need width and height.
```
WormIndicator(
length: 3,
controller: _controller,
shape: Shape(
size: 16,
spacing: 8,
shape: DotShape.Circle // Similar for Square
),
),
```
```
WormIndicator(
length: 3,
controller: _controller,
shape: Shape(
width: 16,
height: 24,
spacing: 8,
shape: DotShape.Rectangle
),
),
```
Properties:
|Name|Usage|Type|
|---|---|---|
|`length`| Number of dots |`int`|
|`controller`| PageView controller |`PageController`|
|`shape`| Shape of dots |`Shape`|
|`color`| Color of normal dots |`Color`|
|`indicatorColor`| Color of current active dot |`Color`|
Shape Constructor:
|Name|Usage|Type|
|---|---|---|
|`width`| Width of dot (required if shape is Rectange)|`double`|
|`height`| Height of dot (required if shape is Rectange)|`double`|
|`size`| Size of dot (required if shape is Circle or Square)|`double`|
|`spacing`| Spacing between dots |`double`|
|`shape`| Shape of dots. One of Circle, Rectangle and Square |`DotShape`|
## Support
Email me at `phuchuynh.strong@gmail.com` for any support needed
近期下载者:
相关文件:
收藏者: