From f0422b3c3a9a7b8adcda9bf943fecc3378c2b673 Mon Sep 17 00:00:00 2001 From: msidolphin Date: Sun, 14 Apr 2019 01:24:25 +0800 Subject: [PATCH 1/2] update pagination class documentation --- README-ZH.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README-ZH.md b/README-ZH.md index 4ff40e1..70cc950 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -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 | 否 | #### 控制按钮 @@ -419,4 +451,4 @@ new ConstrainedBox( 这里可以找到所有的定制选项 ->https://github.com/jzoom/flutter_swiper/blob/master/example/lib/src/ExampleCustom.dart \ No newline at end of file +>https://github.com/jzoom/flutter_swiper/blob/master/example/lib/src/ExampleCustom.dart From 2e8ce2974983e46642ce4ee15c6aa669e290107f Mon Sep 17 00:00:00 2001 From: msidolphin Date: Sun, 14 Apr 2019 01:34:17 +0800 Subject: [PATCH 2/2] update pagination class documentation --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 546ecaa..abb4037 100644 --- a/README.md +++ b/README.md @@ -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