Skip to content

Commit 6ec8e18

Browse files
committed
Fixed marker icon types.
1 parent 853ce32 commit 6ec8e18

File tree

5 files changed

+68
-9
lines changed

5 files changed

+68
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
## 0.1.4+2
2+
3+
* Fixed Marker icon types.
4+
15
## 0.1.4+1
26

3-
* Fixed Marker icon Bug
7+
* Fixed Marker icon Bug.
48

59
## 0.1.4
610

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ packages:
136136
path: ".."
137137
relative: true
138138
source: path
139-
version: "0.1.4+1"
139+
version: "0.1.4+2"
140140
quiver:
141141
dependency: transitive
142142
description:

lib/src/bitmap.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ class BitmapDescriptor {
1919
return null;
2020
}
2121

22+
/// Creates a [BitmapDescriptor] from an asset image.
23+
/// Asset images in flutter are stored per: https://flutter.dev/docs/development/ui/assets-and-images#declaring-resolution-aware-image-assets
24+
///
25+
/// This method takes into consideration various asset resolutions and scales the images to the right resolution depending on the dpi.
26+
///
27+
/// Don't forget to rebuild the map with the new Icons if it was already build.
2228
static Future<BitmapDescriptor> fromAssetImage(
2329
ImageConfiguration configuration,
2430
String assetName, {
@@ -34,7 +40,7 @@ class BitmapDescriptor {
3440
package: package,
3541
);
3642
} else if (Platform.isAndroid) {
37-
bitmap = googleMaps.BitmapDescriptor.fromAssetImage(
43+
bitmap = await googleMaps.BitmapDescriptor.fromAssetImage(
3844
configuration,
3945
assetName,
4046
bundle: bundle,

pubspec.lock

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,27 @@ packages:
88
url: "https://pub.dartlang.org"
99
source: hosted
1010
version: "0.0.6"
11+
archive:
12+
dependency: transitive
13+
description:
14+
name: archive
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "2.0.11"
18+
args:
19+
dependency: transitive
20+
description:
21+
name: args
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "1.5.2"
1125
async:
1226
dependency: transitive
1327
description:
1428
name: async
1529
url: "https://pub.dartlang.org"
1630
source: hosted
17-
version: "2.3.0"
31+
version: "2.4.0"
1832
boolean_selector:
1933
dependency: transitive
2034
description:
@@ -36,6 +50,20 @@ packages:
3650
url: "https://pub.dartlang.org"
3751
source: hosted
3852
version: "1.14.11"
53+
convert:
54+
dependency: transitive
55+
description:
56+
name: convert
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "2.1.1"
60+
crypto:
61+
dependency: transitive
62+
description:
63+
name: crypto
64+
url: "https://pub.dartlang.org"
65+
source: hosted
66+
version: "2.1.3"
3967
flutter:
4068
dependency: "direct main"
4169
description: flutter
@@ -53,20 +81,27 @@ packages:
5381
url: "https://pub.dartlang.org"
5482
source: hosted
5583
version: "0.5.21+7"
84+
image:
85+
dependency: transitive
86+
description:
87+
name: image
88+
url: "https://pub.dartlang.org"
89+
source: hosted
90+
version: "2.1.4"
5691
matcher:
5792
dependency: transitive
5893
description:
5994
name: matcher
6095
url: "https://pub.dartlang.org"
6196
source: hosted
62-
version: "0.12.5"
97+
version: "0.12.6"
6398
meta:
6499
dependency: transitive
65100
description:
66101
name: meta
67102
url: "https://pub.dartlang.org"
68103
source: hosted
69-
version: "1.1.7"
104+
version: "1.1.8"
70105
path:
71106
dependency: transitive
72107
description:
@@ -81,6 +116,13 @@ packages:
81116
url: "https://pub.dartlang.org"
82117
source: hosted
83118
version: "1.8.0+1"
119+
petitparser:
120+
dependency: transitive
121+
description:
122+
name: petitparser
123+
url: "https://pub.dartlang.org"
124+
source: hosted
125+
version: "2.4.0"
84126
quiver:
85127
dependency: transitive
86128
description:
@@ -134,7 +176,7 @@ packages:
134176
name: test_api
135177
url: "https://pub.dartlang.org"
136178
source: hosted
137-
version: "0.2.5"
179+
version: "0.2.11"
138180
typed_data:
139181
dependency: transitive
140182
description:
@@ -149,6 +191,13 @@ packages:
149191
url: "https://pub.dartlang.org"
150192
source: hosted
151193
version: "2.0.8"
194+
xml:
195+
dependency: transitive
196+
description:
197+
name: xml
198+
url: "https://pub.dartlang.org"
199+
source: hosted
200+
version: "3.5.0"
152201
sdks:
153-
dart: ">=2.2.2 <3.0.0"
202+
dart: ">=2.4.0 <3.0.0"
154203
flutter: ">=1.5.0 <2.0.0"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: platform_maps_flutter
22
description: A Flutter package that combines google_maps and apple_maps to provide a crossplatform native map implementation.
3-
version: 0.1.4+1
3+
version: 0.1.4+2
44
author: Luis Thein <luis.thein@gmx.de>
55
homepage: https://github.com/LuisThein
66
github: https://github.com/LuisThein/flutter_platform_maps

0 commit comments

Comments
 (0)