@@ -54,14 +54,14 @@ void main() {
54
54
final Circle c1 = Circle (circleId: CircleId ("circle_1" ));
55
55
await tester.pumpWidget (_mapWithCircles (_toSet (c1: c1)));
56
56
57
- final FakePlatformAppleMap platformGoogleMap =
57
+ final FakePlatformAppleMap platformAppleMap =
58
58
fakePlatformViewsController.lastCreatedView;
59
- expect (platformGoogleMap .circlesToAdd.length, 1 );
59
+ expect (platformAppleMap .circlesToAdd.length, 1 );
60
60
61
- final Circle initializedCircle = platformGoogleMap .circlesToAdd.first;
61
+ final Circle initializedCircle = platformAppleMap .circlesToAdd.first;
62
62
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 );
65
65
debugDefaultTargetPlatformOverride = null ;
66
66
});
67
67
@@ -73,16 +73,16 @@ void main() {
73
73
await tester.pumpWidget (_mapWithCircles (_toSet (c1: c1)));
74
74
await tester.pumpWidget (_mapWithCircles (_toSet (c1: c1, c2: c2)));
75
75
76
- final FakePlatformAppleMap platformGoogleMap =
76
+ final FakePlatformAppleMap platformAppleMap =
77
77
fakePlatformViewsController.lastCreatedView;
78
- expect (platformGoogleMap .circlesToAdd.length, 1 );
78
+ expect (platformAppleMap .circlesToAdd.length, 1 );
79
79
80
- final Circle addedCircle = platformGoogleMap .circlesToAdd.first;
80
+ final Circle addedCircle = platformAppleMap .circlesToAdd.first;
81
81
expect (addedCircle, equals (c2));
82
82
83
- expect (platformGoogleMap .circleIdsToRemove.isEmpty, true );
83
+ expect (platformAppleMap .circleIdsToRemove.isEmpty, true );
84
84
85
- expect (platformGoogleMap .circlesToChange.isEmpty, true );
85
+ expect (platformAppleMap .circlesToChange.isEmpty, true );
86
86
debugDefaultTargetPlatformOverride = null ;
87
87
});
88
88
@@ -93,13 +93,13 @@ void main() {
93
93
await tester.pumpWidget (_mapWithCircles (_toSet (c1: c1)));
94
94
await tester.pumpWidget (_mapWithCircles (null ));
95
95
96
- final FakePlatformAppleMap platformGoogleMap =
96
+ final FakePlatformAppleMap platformAppleMap =
97
97
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));
100
100
101
- expect (platformGoogleMap .circlesToChange.isEmpty, true );
102
- expect (platformGoogleMap .circlesToAdd.isEmpty, true );
101
+ expect (platformAppleMap .circlesToChange.isEmpty, true );
102
+ expect (platformAppleMap .circlesToAdd.isEmpty, true );
103
103
debugDefaultTargetPlatformOverride = null ;
104
104
});
105
105
@@ -111,13 +111,13 @@ void main() {
111
111
await tester.pumpWidget (_mapWithCircles (_toSet (c1: c1)));
112
112
await tester.pumpWidget (_mapWithCircles (_toSet (c1: c2)));
113
113
114
- final FakePlatformAppleMap platformGoogleMap =
114
+ final FakePlatformAppleMap platformAppleMap =
115
115
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));
118
118
119
- expect (platformGoogleMap .circleIdsToRemove.isEmpty, true );
120
- expect (platformGoogleMap .circlesToAdd.isEmpty, true );
119
+ expect (platformAppleMap .circleIdsToRemove.isEmpty, true );
120
+ expect (platformAppleMap .circlesToAdd.isEmpty, true );
121
121
debugDefaultTargetPlatformOverride = null ;
122
122
});
123
123
@@ -129,11 +129,11 @@ void main() {
129
129
await tester.pumpWidget (_mapWithCircles (_toSet (c1: c1)));
130
130
await tester.pumpWidget (_mapWithCircles (_toSet (c1: c2)));
131
131
132
- final FakePlatformAppleMap platformGoogleMap =
132
+ final FakePlatformAppleMap platformAppleMap =
133
133
fakePlatformViewsController.lastCreatedView;
134
- expect (platformGoogleMap .circlesToChange.length, 1 );
134
+ expect (platformAppleMap .circlesToChange.length, 1 );
135
135
136
- final Circle update = platformGoogleMap .circlesToChange.first;
136
+ final Circle update = platformAppleMap .circlesToChange.first;
137
137
expect (update, equals (c2));
138
138
expect (update.radius, 10 );
139
139
debugDefaultTargetPlatformOverride = null ;
@@ -151,12 +151,12 @@ void main() {
151
151
await tester.pumpWidget (_mapWithCircles (prev));
152
152
await tester.pumpWidget (_mapWithCircles (cur));
153
153
154
- final FakePlatformAppleMap platformGoogleMap =
154
+ final FakePlatformAppleMap platformAppleMap =
155
155
fakePlatformViewsController.lastCreatedView;
156
156
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 );
160
160
debugDefaultTargetPlatformOverride = null ;
161
161
});
162
162
@@ -174,16 +174,16 @@ void main() {
174
174
await tester.pumpWidget (_mapWithCircles (prev));
175
175
await tester.pumpWidget (_mapWithCircles (cur));
176
176
177
- final FakePlatformAppleMap platformGoogleMap =
177
+ final FakePlatformAppleMap platformAppleMap =
178
178
fakePlatformViewsController.lastCreatedView;
179
179
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 );
183
183
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));
187
187
debugDefaultTargetPlatformOverride = null ;
188
188
});
189
189
@@ -199,12 +199,12 @@ void main() {
199
199
await tester.pumpWidget (_mapWithCircles (prev));
200
200
await tester.pumpWidget (_mapWithCircles (cur));
201
201
202
- final FakePlatformAppleMap platformGoogleMap =
202
+ final FakePlatformAppleMap platformAppleMap =
203
203
fakePlatformViewsController.lastCreatedView;
204
204
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 );
208
208
debugDefaultTargetPlatformOverride = null ;
209
209
});
210
210
}
0 commit comments