Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JaffaKetchup committed Nov 17, 2024
1 parent 99fa71c commit 8d52ab4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/src/layer/tile_layer/tile_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,12 @@ class TileLayer extends StatefulWidget {
? (zoomReverse ? zoomOffset - 1.0 : zoomOffset + 1.0)
: zoomOffset;
// Deprecated assignment
if (tileSize case final tileSize?) {
// ignore: deprecated_member_use_from_same_package
this.tileSize =
useSimulatedRetina ? (tileSize / 2.0).floorToDouble() : tileSize;
}
// ignore: deprecated_member_use_from_same_package
this.tileSize = tileSize == null
? null
: useSimulatedRetina
? (tileSize / 2).floorToDouble()
: tileSize;
this.tileDimension =
useSimulatedRetina ? tileDimension ~/ 2 : tileDimension;
}
Expand Down

0 comments on commit 8d52ab4

Please sign in to comment.