Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jzoom committed Aug 12, 2018
1 parent abd2c5b commit 032dc5f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@
## [1.0.4] - [2018/07/18]
* 修复一些错别字,感谢[csharad](https://github.com/csharad)

## [1.0.5] - [2018/08/09]
* viewportFraction<1.0增加fade参数
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@
* Use new to create everything. See #5

## [1.0.4] - [2018/07/18]
* Fix some typo,thanks to [csharad](https://github.com/csharad)
* Fix some typo,thanks to [csharad](https://github.com/csharad)

## [1.0.5] - [2018/08/09]
* Add feature : support fade for `viewportFraction`
17 changes: 17 additions & 0 deletions example/lib/src/ExampleCustom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class _ExampleCustomState extends State<ExampleCustom> {

Curve _curve;

double _fade;

CustomLayoutOption customLayoutOption;

Widget _buildItem(BuildContext context, int index) {
Expand Down Expand Up @@ -70,6 +72,7 @@ class _ExampleCustomState extends State<ExampleCustom> {
new Offset(0.0, 0.0),
new Offset(350.0, 0.0)
]);
_fade = 1.0;
_currentIndex = 0;
_curve = Curves.ease;
_scale = 0.8;
Expand Down Expand Up @@ -105,6 +108,7 @@ class _ExampleCustomState extends State<ExampleCustom> {
// }));
},
customLayoutOption: customLayoutOption,
fade: _fade,
index: _currentIndex,
onIndexChanged: (int index) {
setState(() {
Expand Down Expand Up @@ -221,6 +225,19 @@ class _ExampleCustomState extends State<ExampleCustom> {
},
),
),
new FormWidget(
label: "fade",
child: new NumberPad(
number: _fade,
step: 0.1,
min: 0.0,
max: 1.0,
onChangeValue: (num value) {
_fade = value.toDouble();
setState(() {});
},
),
),
new FormWidget(
label: "itemCount",
child: new NumberPad(
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_swiper
description: The best swiper for flutter with multiple layouts, infinite loop. Compatible with Android & iOS.
version: 1.0.4
description: The best swiper(carousel) for flutter, with multiple layouts, infinite loop. Compatible with Android & iOS.
version: 1.0.5
author: JZoom <jzoom8112@gmail.com>
homepage: https://github.com/jzoom/flutter_swiper

Expand Down

0 comments on commit 032dc5f

Please sign in to comment.