Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update pagination class document #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,39 @@ new Swiper(
);

```
##### 内置分页指示器

###### DotSwiperPaginationBuilder

| 参数 | 默认值 | 描述 | 是否必须
| :------------ |:---------------| :-----| :----: |
| activeColor | Theme.of(context).primaryColor | 激活状态颜色 |否 |
| color | Theme.of(context).scaffoldBackgroundColor | 指示器颜色 | 否|
| activeSize | 10.0 | 激活状态指示器大小 | 否 |
| size | 10.0 | 指示器大小 | 否 |
| space | 3.0 | 指示器间距| 否 |
| key | - | key | 否 |

###### FractionPaginationBuilder

| 参数 | 默认值 | 描述 | 是否必须
| :------------ |:---------------| :-----| :----: |
| activeColor | Theme.of(context).primaryColor | 激活状态颜色 |否 |
| color | Theme.of(context).scaffoldBackgroundColor | 颜色 | 否|
| activeFontSize | 35.0 | 激活状态指示器文字大小 | 否 |
| fontSize | 20.0 | 指示器文字大小 | 否 |
| key | - | key | 否 |

###### RectSwiperPaginationBuilder

| 参数 | 默认值 | 描述 | 是否必须
| :------------ |:---------------| :-----| :----: |
| activeColor | Theme.of(context).primaryColor | 激活状态颜色 |否 |
| color | Theme.of(context).scaffoldBackgroundColor | 指示器颜色 | 否|
| activeSize | 10.0 | 激活状态指示器大小 | 否 |
| size | 10.0 | 指示器大小 | 否 |
| space | 3.0 | 指示器间距| 否 |
| key | - | key | 否 |


#### 控制按钮
Expand Down Expand Up @@ -419,4 +451,4 @@ new ConstrainedBox(

这里可以找到所有的定制选项

>https://github.com/jzoom/flutter_swiper/blob/master/example/lib/src/ExampleCustom.dart
>https://github.com/jzoom/flutter_swiper/blob/master/example/lib/src/ExampleCustom.dart
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,39 @@ new Swiper(
);

```

##### Implemented pagination

###### DotSwiperPaginationBuilder

| Parameter | Default | Description | Required |
| :------------ |:---------------| :-----| :----: |
| activeColor | Theme.of(context).primaryColor | Active bullet color |false |
| color | Theme.of(context).scaffoldBackgroundColor | Bullet color | false |
| activeSize | 10.0 | Active bullet size | false |
| size | 10.0 | Bullet size | false |
| space | 3.0 | Distance between bullets | false |
| key | - | key | false |

###### FractionPaginationBuilder

| Parameter | Default | Description | Required
| :------------ |:---------------| :-----| :----: |
| activeColor | Theme.of(context).primaryColor | Active font color |false |
| color | Theme.of(context).scaffoldBackgroundColor | font color | false|
| activeFontSize | 35.0 | Active font size | false |
| fontSize | 20.0 | Font size | false |
| key | - | key | false |

###### RectSwiperPaginationBuilder

| Parameter | Default | Description | Required
| :------------ |:---------------| :-----| :----: |
| activeColor | Theme.of(context).primaryColor | Active bullet color |false |
| color | Theme.of(context).scaffoldBackgroundColor | Bullet color | false|
| activeSize | 10.0 | Active bullet size | false |
| size | 10.0 | Bullet size | false |
| space | 3.0 | Distance between bullets| false |
| key | - | key | false |


#### Control buttons
Expand Down