Skip to content

Commit 9f7225d

Browse files
committed
Bumped version + updated readme
1 parent bed90ff commit 9f7225d

File tree

7 files changed

+50
-46
lines changed

7 files changed

+50
-46
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.0
2+
3+
* Added ability to place circles on the map.
4+
15
## 0.0.7
26

37
* Added ability to place polygons on the map.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ class AppleMapsExample extends StatelessWidget {
120120
- [x] Add zoomLevelBounds
121121
- [x] Add zoomBy functionality
122122
- [x] Add getter for the visible map region
123-
- [x] Add ability to place a polyline
123+
- [x] Add ability to place polylines on the map
124124
- [x] Add ability to add padding to the map
125-
- [x] Add ability to place a polygon
125+
- [x] Add ability to place polygons on the map
126+
- [x] Add ability to place circles on the map
126127
- [ ] Add ability to set LatLngBounds to map
127128
- [ ] Add scrollBy functionality
128-
- [ ] Add ability to place a circle
129129
- [ ] . . .
130130

131131
Suggestions and PR's to make this plugin better are always welcome.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ packages:
1414
path: ".."
1515
relative: true
1616
source: path
17-
version: "0.0.7"
17+
version: "0.1.0"
1818
archive:
1919
dependency: transitive
2020
description:

lib/src/circle.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
part of apple_maps_flutter;
66

7-
/// Uniquely identifies a [Circle] among [GoogleMap] circles.
7+
/// Uniquely identifies a [Circle] among [AppleMap] circles.
88
///
99
/// This does not have to be globally unique, only unique among the list.
1010
@immutable
@@ -35,7 +35,7 @@ class CircleId {
3535
/// Draws a circle on the map.
3636
@immutable
3737
class Circle {
38-
/// Creates an immutable representation of a [Circle] to draw on [GoogleMap].
38+
/// Creates an immutable representation of a [Circle] to draw on [AppleMap].
3939
const Circle({
4040
@required this.circleId,
4141
this.consumeTapEvents = false,

lib/src/circle_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ part of apple_maps_flutter;
66

77
/// [Circle] update events to be applied to the [AppleMap].
88
///
9-
/// Used in [GoogleMapController] when the map is updated.
9+
/// Used in [AppleMapController] when the map is updated.
1010
class _CircleUpdates {
1111
/// Computes [_CircleUpdates] given previous and current [Circle]s.
1212
_CircleUpdates.from(Set<Circle> previous, Set<Circle> current) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: apple_maps_flutter
22
description: This plugin uses the Flutter platform view to display an Apple Maps widget.
3-
version: 0.0.7
3+
version: 0.1.0
44
homepage: https://luisthein.de
55
github: https://github.com/LuisThein/apple_maps_flutter
66

test/circle_updates_test.dart

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ void main() {
5454
final Circle c1 = Circle(circleId: CircleId("circle_1"));
5555
await tester.pumpWidget(_mapWithCircles(_toSet(c1: c1)));
5656

57-
final FakePlatformAppleMap platformGoogleMap =
57+
final FakePlatformAppleMap platformAppleMap =
5858
fakePlatformViewsController.lastCreatedView;
59-
expect(platformGoogleMap.circlesToAdd.length, 1);
59+
expect(platformAppleMap.circlesToAdd.length, 1);
6060

61-
final Circle initializedCircle = platformGoogleMap.circlesToAdd.first;
61+
final Circle initializedCircle = platformAppleMap.circlesToAdd.first;
6262
expect(initializedCircle, equals(c1));
63-
expect(platformGoogleMap.circleIdsToRemove.isEmpty, true);
64-
expect(platformGoogleMap.circlesToChange.isEmpty, true);
63+
expect(platformAppleMap.circleIdsToRemove.isEmpty, true);
64+
expect(platformAppleMap.circlesToChange.isEmpty, true);
6565
debugDefaultTargetPlatformOverride = null;
6666
});
6767

@@ -73,16 +73,16 @@ void main() {
7373
await tester.pumpWidget(_mapWithCircles(_toSet(c1: c1)));
7474
await tester.pumpWidget(_mapWithCircles(_toSet(c1: c1, c2: c2)));
7575

76-
final FakePlatformAppleMap platformGoogleMap =
76+
final FakePlatformAppleMap platformAppleMap =
7777
fakePlatformViewsController.lastCreatedView;
78-
expect(platformGoogleMap.circlesToAdd.length, 1);
78+
expect(platformAppleMap.circlesToAdd.length, 1);
7979

80-
final Circle addedCircle = platformGoogleMap.circlesToAdd.first;
80+
final Circle addedCircle = platformAppleMap.circlesToAdd.first;
8181
expect(addedCircle, equals(c2));
8282

83-
expect(platformGoogleMap.circleIdsToRemove.isEmpty, true);
83+
expect(platformAppleMap.circleIdsToRemove.isEmpty, true);
8484

85-
expect(platformGoogleMap.circlesToChange.isEmpty, true);
85+
expect(platformAppleMap.circlesToChange.isEmpty, true);
8686
debugDefaultTargetPlatformOverride = null;
8787
});
8888

@@ -93,13 +93,13 @@ void main() {
9393
await tester.pumpWidget(_mapWithCircles(_toSet(c1: c1)));
9494
await tester.pumpWidget(_mapWithCircles(null));
9595

96-
final FakePlatformAppleMap platformGoogleMap =
96+
final FakePlatformAppleMap platformAppleMap =
9797
fakePlatformViewsController.lastCreatedView;
98-
expect(platformGoogleMap.circleIdsToRemove.length, 1);
99-
expect(platformGoogleMap.circleIdsToRemove.first, equals(c1.circleId));
98+
expect(platformAppleMap.circleIdsToRemove.length, 1);
99+
expect(platformAppleMap.circleIdsToRemove.first, equals(c1.circleId));
100100

101-
expect(platformGoogleMap.circlesToChange.isEmpty, true);
102-
expect(platformGoogleMap.circlesToAdd.isEmpty, true);
101+
expect(platformAppleMap.circlesToChange.isEmpty, true);
102+
expect(platformAppleMap.circlesToAdd.isEmpty, true);
103103
debugDefaultTargetPlatformOverride = null;
104104
});
105105

@@ -111,13 +111,13 @@ void main() {
111111
await tester.pumpWidget(_mapWithCircles(_toSet(c1: c1)));
112112
await tester.pumpWidget(_mapWithCircles(_toSet(c1: c2)));
113113

114-
final FakePlatformAppleMap platformGoogleMap =
114+
final FakePlatformAppleMap platformAppleMap =
115115
fakePlatformViewsController.lastCreatedView;
116-
expect(platformGoogleMap.circlesToChange.length, 1);
117-
expect(platformGoogleMap.circlesToChange.first, equals(c2));
116+
expect(platformAppleMap.circlesToChange.length, 1);
117+
expect(platformAppleMap.circlesToChange.first, equals(c2));
118118

119-
expect(platformGoogleMap.circleIdsToRemove.isEmpty, true);
120-
expect(platformGoogleMap.circlesToAdd.isEmpty, true);
119+
expect(platformAppleMap.circleIdsToRemove.isEmpty, true);
120+
expect(platformAppleMap.circlesToAdd.isEmpty, true);
121121
debugDefaultTargetPlatformOverride = null;
122122
});
123123

@@ -129,11 +129,11 @@ void main() {
129129
await tester.pumpWidget(_mapWithCircles(_toSet(c1: c1)));
130130
await tester.pumpWidget(_mapWithCircles(_toSet(c1: c2)));
131131

132-
final FakePlatformAppleMap platformGoogleMap =
132+
final FakePlatformAppleMap platformAppleMap =
133133
fakePlatformViewsController.lastCreatedView;
134-
expect(platformGoogleMap.circlesToChange.length, 1);
134+
expect(platformAppleMap.circlesToChange.length, 1);
135135

136-
final Circle update = platformGoogleMap.circlesToChange.first;
136+
final Circle update = platformAppleMap.circlesToChange.first;
137137
expect(update, equals(c2));
138138
expect(update.radius, 10);
139139
debugDefaultTargetPlatformOverride = null;
@@ -151,12 +151,12 @@ void main() {
151151
await tester.pumpWidget(_mapWithCircles(prev));
152152
await tester.pumpWidget(_mapWithCircles(cur));
153153

154-
final FakePlatformAppleMap platformGoogleMap =
154+
final FakePlatformAppleMap platformAppleMap =
155155
fakePlatformViewsController.lastCreatedView;
156156

157-
expect(platformGoogleMap.circlesToChange, cur);
158-
expect(platformGoogleMap.circleIdsToRemove.isEmpty, true);
159-
expect(platformGoogleMap.circlesToAdd.isEmpty, true);
157+
expect(platformAppleMap.circlesToChange, cur);
158+
expect(platformAppleMap.circleIdsToRemove.isEmpty, true);
159+
expect(platformAppleMap.circlesToAdd.isEmpty, true);
160160
debugDefaultTargetPlatformOverride = null;
161161
});
162162

@@ -174,16 +174,16 @@ void main() {
174174
await tester.pumpWidget(_mapWithCircles(prev));
175175
await tester.pumpWidget(_mapWithCircles(cur));
176176

177-
final FakePlatformAppleMap platformGoogleMap =
177+
final FakePlatformAppleMap platformAppleMap =
178178
fakePlatformViewsController.lastCreatedView;
179179

180-
expect(platformGoogleMap.circlesToChange.length, 1);
181-
expect(platformGoogleMap.circlesToAdd.length, 1);
182-
expect(platformGoogleMap.circleIdsToRemove.length, 1);
180+
expect(platformAppleMap.circlesToChange.length, 1);
181+
expect(platformAppleMap.circlesToAdd.length, 1);
182+
expect(platformAppleMap.circleIdsToRemove.length, 1);
183183

184-
expect(platformGoogleMap.circlesToChange.first, equals(c2));
185-
expect(platformGoogleMap.circlesToAdd.first, equals(c1));
186-
expect(platformGoogleMap.circleIdsToRemove.first, equals(c3.circleId));
184+
expect(platformAppleMap.circlesToChange.first, equals(c2));
185+
expect(platformAppleMap.circlesToAdd.first, equals(c1));
186+
expect(platformAppleMap.circleIdsToRemove.first, equals(c3.circleId));
187187
debugDefaultTargetPlatformOverride = null;
188188
});
189189

@@ -199,12 +199,12 @@ void main() {
199199
await tester.pumpWidget(_mapWithCircles(prev));
200200
await tester.pumpWidget(_mapWithCircles(cur));
201201

202-
final FakePlatformAppleMap platformGoogleMap =
202+
final FakePlatformAppleMap platformAppleMap =
203203
fakePlatformViewsController.lastCreatedView;
204204

205-
expect(platformGoogleMap.circlesToChange, _toSet(c3: c3));
206-
expect(platformGoogleMap.circleIdsToRemove.isEmpty, true);
207-
expect(platformGoogleMap.circlesToAdd.isEmpty, true);
205+
expect(platformAppleMap.circlesToChange, _toSet(c3: c3));
206+
expect(platformAppleMap.circleIdsToRemove.isEmpty, true);
207+
expect(platformAppleMap.circlesToAdd.isEmpty, true);
208208
debugDefaultTargetPlatformOverride = null;
209209
});
210210
}

0 commit comments

Comments
 (0)