Skip to content

Commit

Permalink
Migrate place_tracker away from deprecated BitmapDescriptor method (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
domesticmouse authored May 29, 2024
1 parent 12ec63b commit 5cd8718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions place_tracker/lib/place_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5cd8718

Please sign in to comment.