File tree 5 files changed +18
-9
lines changed
5 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 28
28
- name : Run dart analyze
29
29
run : dart analyze
30
30
- name : run tests
31
- run : flutter test
31
+ run : flutter test --coverage
32
+ - name : upload coverage report
33
+ uses : codecov/codecov-action@v2
34
+ with :
35
+ token : ${{secrets.CODECOV}}
36
+ file : ./coverage/lcov.info
32
37
- name : build example project
33
38
working-directory : ./example
34
39
run : flutter build ios --release --no-codesign
Original file line number Diff line number Diff line change 30
30
.pub /
31
31
build /
32
32
pubspec.lock
33
+ coverage /
33
34
34
35
# Android related
35
36
** /android /** /gradle-wrapper.jar
Original file line number Diff line number Diff line change 1
1
# apple_maps_flutter
2
2
3
+ [ ![ codecov] ( https://codecov.io/gh/erluxman/productive/branch/master/graph/badge.svg )] ( https://codecov.io/gh/LuisThein/apple_maps_flutter )
4
+
3
5
A Flutter plugin that provides an Apple Maps widget.
4
6
5
7
The plugin relies on Flutter's mechanism for embedding Android and iOS views. As that mechanism is currently in a developers preview, this plugin should also be considered a developers preview.
Original file line number Diff line number Diff line change @@ -69,8 +69,6 @@ class AppleMapController {
69
69
case 'annotation#onZIndexChanged' :
70
70
_appleMapState.onAnnotationZIndexChanged (
71
71
call.arguments['annotationId' ], call.arguments['zIndex' ]);
72
- print (
73
- 'AnnotationId: ${call .arguments ['annotationId' ]}, got zIndex: ${call .arguments ['zIndex' ]}' );
74
72
break ;
75
73
case 'map#onTap' :
76
74
_appleMapState.onTap (LatLng ._fromJson (call.arguments['position' ])! );
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ class FakePlatformAppleMap {
120
120
final String annotationId = annotationData['annotationId' ];
121
121
final bool draggable = annotationData['draggable' ];
122
122
final bool visible = annotationData['visible' ];
123
+ final double alpha = annotationData['alpha' ];
123
124
124
125
final dynamic infoWindowData = annotationData['infoWindow' ];
125
126
InfoWindow infoWindow = InfoWindow .noText;
@@ -131,12 +132,14 @@ class FakePlatformAppleMap {
131
132
);
132
133
}
133
134
134
- result.add (Annotation (
135
- annotationId: AnnotationId (annotationId),
136
- draggable: draggable,
137
- visible: visible,
138
- infoWindow: infoWindow,
139
- ));
135
+ result.add (
136
+ Annotation (
137
+ annotationId: AnnotationId (annotationId),
138
+ draggable: draggable,
139
+ visible: visible,
140
+ infoWindow: infoWindow,
141
+ alpha: alpha),
142
+ );
140
143
}
141
144
142
145
return result;
You can’t perform that action at this time.
0 commit comments