1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Migrate place_tracker away from deprecated BitmapDescriptor method (#2309)

This commit is contained in:
Brett Morgan
2024-05-30 04:20:02 +10:00
committed by GitHub
parent 12ec63b686
commit 5cd8718e4b

View File

@@ -406,10 +406,10 @@ class _PlaceMapState extends State<PlaceMap> {
Future<BitmapDescriptor> _getPlaceMarkerIcon(PlaceCategory category) =>
switch (category) {
PlaceCategory.favorite => BitmapDescriptor.fromAssetImage(
PlaceCategory.favorite => BitmapDescriptor.asset(
createLocalImageConfiguration(context, size: const Size.square(32)),
'assets/heart.png'),
PlaceCategory.visited => BitmapDescriptor.fromAssetImage(
PlaceCategory.visited => BitmapDescriptor.asset(
createLocalImageConfiguration(context, size: const Size.square(32)),
'assets/visited.png'),
PlaceCategory.wantToGo => Future.value(BitmapDescriptor.defaultMarker),