Skip to content

Commit 8342719

Browse files
committed
Fix #19 update pub version
1 parent 9bdb2cd commit 8342719

File tree

11 files changed

+250
-184
lines changed

11 files changed

+250
-184
lines changed

.idea/libraries/Dart_Packages.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 186 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
## [1.1.4] - [2018/10/18]
23

34
## [1.1.2] - [2018/10/10]
45
* Fix #7

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@
390390
);
391391
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
392392
PRODUCT_NAME = "$(TARGET_NAME)";
393+
TARGETED_DEVICE_FAMILY = 1;
393394
VERSIONING_SYSTEM = "apple-generic";
394395
};
395396
name = Debug;
@@ -415,6 +416,7 @@
415416
);
416417
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
417418
PRODUCT_NAME = "$(TARGET_NAME)";
419+
TARGETED_DEVICE_FAMILY = 1;
418420
VERSIONING_SYSTEM = "apple-generic";
419421
};
420422
name = Release;

example/ios/Runner/Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
<key>UISupportedInterfaceOrientations</key>
3434
<array>
3535
<string>UIInterfaceOrientationPortrait</string>
36-
<string>UIInterfaceOrientationLandscapeLeft</string>
37-
<string>UIInterfaceOrientationLandscapeRight</string>
3836
</array>
3937
<key>UISupportedInterfaceOrientations~ipad</key>
4038
<array>

example/lib/src/ExampleSwiperInScrollView.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,19 @@ class _ExampleState extends State<ExampleSwiperInScrollView>
137137
pagination: new SwiperPagination(),
138138
),
139139
),
140+
new SizedBox(
141+
height: 100.0,
142+
child: Swiper(
143+
itemBuilder: (c, i) {
144+
return Container(
145+
color: Colors.grey,
146+
child: Text("$i"),
147+
);
148+
},
149+
pagination: new SwiperPagination(
150+
builder: SwiperPagination.fraction),
151+
itemCount: 0),
152+
),
140153
new SizedBox(
141154
height: 100.0,
142155
child: Swiper(

example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ packages:
8989
path: ".."
9090
relative: true
9191
source: path
92-
version: "1.1.2"
92+
version: "1.1.4"
9393
flutter_test:
9494
dependency: "direct dev"
9595
description: flutter
@@ -358,7 +358,7 @@ packages:
358358
name: transformer_page_view
359359
url: "https://pub.flutter-io.cn"
360360
source: hosted
361-
version: "0.1.1"
361+
version: "0.1.4"
362362
typed_data:
363363
dependency: transitive
364364
description:

lib/src/swiper_controller.dart

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
1+
import 'package:flutter_swiper/src/swiper_plugin.dart';
12
import 'package:transformer_page_view/transformer_page_view.dart';
23

34
class SwiperController extends IndexController {
5+
6+
// Autoplay is started
47
static const int START_AUTOPLAY = 2;
8+
9+
// Autoplay is stopped.
510
static const int STOP_AUTOPLAY = 3;
611

12+
13+
// Indicate that user is swiping
14+
static const int SWIPE = 4;
15+
16+
// Indicate that `Swiper` has changed it's index and is building it's ui ,so that the
17+
// `SwiperPluginConfig` is available.
18+
static const int BUILD = 5;
19+
20+
21+
// Avaliable when `event` == SwiperController.BUILD
22+
SwiperPluginConfig config;
23+
24+
// Avaliable when `event` == SwiperController.SWIPE
25+
double position;
26+
727
int index;
828
bool animation;
929
bool autoplay;
@@ -21,4 +41,7 @@ class SwiperController extends IndexController {
2141
this.autoplay = false;
2242
notifyListeners();
2343
}
44+
45+
46+
2447
}

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ packages:
337337
name: transformer_page_view
338338
url: "https://pub.flutter-io.cn"
339339
source: hosted
340-
version: "0.1.1"
340+
version: "0.1.4"
341341
typed_data:
342342
dependency: transitive
343343
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: flutter_swiper
22
description: The best swiper(carousel) for flutter, with multiple layouts, infinite loop. Compatible with Android & iOS.
3-
version: 1.1.3
3+
version: 1.1.4
44
author: JZoom <jzoom8112@gmail.com>
55
homepage: https://github.com/jzoom/flutter_swiper
66

77
dependencies:
88
flutter:
99
sdk: flutter
1010

11-
transformer_page_view: 0.1.1
11+
transformer_page_view: 0.1.4
1212
flutter_page_indicator: 0.0.3
1313

1414
environment:

0 commit comments

Comments
 (0)