Skip to content

Commit

Permalink
some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lpongetti committed Nov 18, 2019
1 parent fba97c0 commit e12e000
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.2.4] - 18/11/2019

- added analysis_options.yaml
- fix warnings

## [0.2.0] - 26/06/2019

- fix positions
Expand Down
5 changes: 5 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include: package:pedantic/analysis_options.yaml

linter:
rules:
curly_braces_in_flow_control_structures: false
4 changes: 2 additions & 2 deletions example/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/usr/share/flutter"
export "FLUTTER_ROOT=/home/lorenzo/development/flutter"
export "FLUTTER_APPLICATION_PATH=/mnt/84EA2CFBEA2CEADE/lorenzo/flutter_map_marker_cluster/example"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_FRAMEWORK_DIR=/usr/share/flutter/bin/cache/artifacts/engine/ios"
export "FLUTTER_FRAMEWORK_DIR=/home/lorenzo/development/flutter/bin/cache/artifacts/engine/ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class _HomePageState extends State<HomePage> {
},
),
body: FlutterMap(
options: new MapOptions(
options: MapOptions(
center: points[0],
zoom: 5,
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/distance_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DistanceGrid<T> {
if (len == 1) {
row.remove(x);

if (_grid[y].length == 0) {
if (_grid[y].isEmpty) {
_grid.remove(y);
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_map_marker_cluster
description:
A Dart implementation of Leaflet.makercluster for Flutter apps.
Provides beautiful animated marker clustering functionality for flutter_map.
version: 0.2.3
version: 0.2.4
author: Lorenzo Pongetti <[email protected]>

homepage: https://github.com/lpongetti/flutter_map_marker_cluster
Expand Down
12 changes: 6 additions & 6 deletions test/distance_grid_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:latlong/latlong.dart';

void main() {
test('addObject', () {
var grid = new DistanceGrid(100),
var grid = DistanceGrid(100),
obj = Marker(
point: LatLng(1, 2),
);
Expand All @@ -16,7 +16,7 @@ void main() {
});

test('eachObject', () {
var grid = new DistanceGrid(100),
var grid = DistanceGrid(100),
obj = Marker(
point: LatLng(1, 2),
);
Expand All @@ -29,7 +29,7 @@ void main() {
});

test('getNearObject', () {
var grid = new DistanceGrid(100),
var grid = DistanceGrid(100),
obj = Marker(
point: LatLng(1, 2),
);
Expand All @@ -41,7 +41,7 @@ void main() {
});

test('getNearObject double', () {
var grid = new DistanceGrid(100),
var grid = DistanceGrid(100),
obj = Marker(
point: LatLng(1, 2),
);
Expand All @@ -54,7 +54,7 @@ void main() {
});

test('getNearObject with cellSize 0', () {
var grid = new DistanceGrid(0),
var grid = DistanceGrid(0),
obj1 = Marker(
point: LatLng(1, 2),
),
Expand All @@ -70,7 +70,7 @@ void main() {
});

test('getNearObject with cellSize 0 double', () {
var grid = new DistanceGrid(0),
var grid = DistanceGrid(0),
obj1 = Marker(
point: LatLng(1, 2),
),
Expand Down

0 comments on commit e12e000

Please sign in to comment.