Skip to content

Commit

Permalink
Upgrade pub version
Browse files Browse the repository at this point in the history
  • Loading branch information
jzoom committed Jul 18, 2018
1 parent 0722ad2 commit f1ec9ea
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 39 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@

## [1.0.3] - [2018/07/18]
* 根据#5 ,用new来创建对象


## [1.0.4] - [2018/07/18]
* 修复一些错别字,感谢[csharad](https://github.com/csharad)

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@
## [1.0.3] - [2018/07/18]
* Use new to create everything. See #5

## [1.0.4] - [2018/07/18]
* Fix some typo,thanks to [csharad](https://github.com/csharad)
9 changes: 5 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ class ExampleFraction extends StatelessWidget {
autoplay: true,
itemCount: images.length,
reverse: false,
pagination: new SwiperPagination(builder: SwiperPagination.fraction),
pagination:
new SwiperPagination(builder: SwiperPagination.fraction),
control: new SwiperControl(),
)),
Expanded(
Expand Down Expand Up @@ -277,7 +278,7 @@ class ExampleCustomPagination extends StatelessWidget {
autoplay: true,
itemCount: images.length,
reverse: false,
pagination:new SwiperPagination(
pagination: new SwiperPagination(
margin: new EdgeInsets.all(0.0),
builder: new SwiperCustomPagination(builder:
(BuildContext context, SwiperPluginConfig config) {
Expand Down Expand Up @@ -331,7 +332,7 @@ class ExamplePhone extends StatelessWidget {
new Swiper.children(
autoplay: false,
pagination: new SwiperPagination(
margin:new EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 30.0),
margin: new EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 30.0),
builder: new DotSwiperPaginationBuilder(
color: Colors.white30,
activeColor: Colors.white,
Expand Down Expand Up @@ -365,7 +366,7 @@ class ScaffoldWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar:new AppBar(
appBar: new AppBar(
title: new Text(title),
actions: actions,
),
Expand Down
71 changes: 38 additions & 33 deletions example/lib/src/ExampleSwiperInScrollView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class ExampleSwiperInScrollView extends StatelessWidget {
child: Text("$i"),
);
},
pagination:
new SwiperPagination(builder: SwiperPagination.fraction),
pagination: new SwiperPagination(
builder: SwiperPagination.fraction),
itemCount: 10000),
),
new SizedBox(
Expand All @@ -64,7 +64,7 @@ class ExampleSwiperInScrollView extends StatelessWidget {
);
},
pagination:
new SwiperPagination(alignment: Alignment.topCenter),
new SwiperPagination(alignment: Alignment.topCenter),
itemCount: 10),
),
new Swiper(
Expand All @@ -80,38 +80,43 @@ class ExampleSwiperInScrollView extends StatelessWidget {
itemCount: 10,
),
new ConstrainedBox(
child: new Swiper(
outer:false,
itemBuilder: (c, i) {
return new Wrap(
runSpacing: 6.0,
children: [0,1,2,3,4,5,6,7,8,9].map((i){
return new SizedBox(
width: MediaQuery.of(context).size.width/5,
child: new Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new SizedBox(
child: new Container(
child: new Image.network("https://fuss10.elemecdn.com/c/db/d20d49e5029281b9b73db1c5ec6f9jpeg.jpeg%3FimageMogr/format/webp/thumbnail/!90x90r/gravity/Center/crop/90x90"),
child: new Swiper(
outer: false,
itemBuilder: (c, i) {
return new Wrap(
runSpacing: 6.0,
children: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((i) {
return new SizedBox(
width: MediaQuery.of(context).size.width / 5,
child: new Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new SizedBox(
child: new Container(
child: new Image.network(
"https://fuss10.elemecdn.com/c/db/d20d49e5029281b9b73db1c5ec6f9jpeg.jpeg%3FimageMogr/format/webp/thumbnail/!90x90r/gravity/Center/crop/90x90"),
),
height: MediaQuery.of(context).size.width *
0.12,
width: MediaQuery.of(context).size.width *
0.12,
),
height: MediaQuery.of(context).size.width * 0.12,
width: MediaQuery.of(context).size.width * 0.12,
),
new Padding(padding: new EdgeInsets.only(top:6.0),child: new Text("$i"),)
],
),
);
}).toList(),
);
},
pagination: new SwiperPagination(
margin: new EdgeInsets.all(5.0)
new Padding(
padding: new EdgeInsets.only(top: 6.0),
child: new Text("$i"),
)
],
),
);
}).toList(),
);
},
pagination:
new SwiperPagination(margin: new EdgeInsets.all(5.0)),
itemCount: 10,
),
itemCount: 10,
),
constraints:new BoxConstraints.loose(new Size(screenWidth, 170.0))
),
constraints:
new BoxConstraints.loose(new Size(screenWidth, 170.0))),
new SizedBox(
height: 100.0,
child: new Swiper(
Expand Down
2 changes: 1 addition & 1 deletion 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.3
version: 1.0.4
author: JZoom <[email protected]>
homepage: https://github.com/jzoom/flutter_swiper

Expand Down

0 comments on commit f1ec9ea

Please sign in to comment.