Skip to content

Commit 663c71c

Browse files
committed
lint
1 parent 7d72f6e commit 663c71c

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

example/integration_test/camera_test.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ void main() {
427427
testWidgets('getDragCameraOptions', (WidgetTester tester) async {
428428
final mapFuture = app.runFixedSizeMap();
429429
await tester.pumpAndSettle();
430-
final mapboxMap = await mapFuture;
430+
final mapboxMap = await mapFuture;
431431

432432
var destination = ScreenCoordinate(x: 100, y: 100);
433-
433+
434434
// the input has to be scaled on Android,
435435
// as GL Native treats iOS and Android coordinates differently:
436436
// * on iOS screen coordinates are expected to be provided(as well as returned by GL Native) as logical pixels
@@ -442,11 +442,12 @@ void main() {
442442
destination.x = destination.x * pixelRatio;
443443
destination.y = destination.y * pixelRatio;
444444
}
445-
final options = await mapboxMap.getDragCameraOptions(ScreenCoordinate(x: 0, y: 0), destination);
445+
final options = await mapboxMap.getDragCameraOptions(
446+
ScreenCoordinate(x: 0, y: 0), destination);
446447
final coordinates = options.center!["coordinates"] as List;
447448
expect((coordinates.first as double).round(), -97);
448449
expect((coordinates.last as double).round(), 69);
449-
450+
450451
await addDelay(1000);
451452
});
452453
}

example/integration_test/map_interface_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ void main() {
212212
var source = await rootBundle.loadString('assets/source.json');
213213
var layer = await rootBundle.loadString('assets/point_layer.json');
214214
final ByteData bytes =
215-
await rootBundle.load('assets/symbols/custom-icon.png');
215+
await rootBundle.load('assets/symbols/custom-icon.png');
216216
final Uint8List list = bytes.buffer.asUint8List();
217217
await style.addStyleImage('icon', 1.0,
218-
MbxImage(width: 40, height: 40, data: list), true, [], [], null);
218+
MbxImage(width: 40, height: 40, data: list), true, [], [], null);
219219
style.addStyleSource('source', source);
220220
style.addStyleLayer(layer, null);
221221
await addDelay(1000);

example/lib/empty_map_widget.dart

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,18 @@ Future<MapboxMap> runFixedSizeMap() {
2525

2626
runApp(MaterialApp(
2727
home: Align(
28-
alignment: Alignment.topLeft,
29-
child: Container(
30-
width: 300,
31-
height: 300,
32-
child: MapWidget(
33-
key: ValueKey("mapWidget"),
34-
onMapCreated: (MapboxMap mapboxMap) {
35-
completer.complete(mapboxMap);
36-
},
37-
resourceOptions:
38-
ResourceOptions(accessToken: MapsDemo.ACCESS_TOKEN)),
39-
),
40-
)));
28+
alignment: Alignment.topLeft,
29+
child: Container(
30+
width: 300,
31+
height: 300,
32+
child: MapWidget(
33+
key: ValueKey("mapWidget"),
34+
onMapCreated: (MapboxMap mapboxMap) {
35+
completer.complete(mapboxMap);
36+
},
37+
resourceOptions: ResourceOptions(accessToken: MapsDemo.ACCESS_TOKEN)),
38+
),
39+
)));
4140

4241
return completer.future;
4342
}

0 commit comments

Comments
 (0)