Skip to content

Commit 3e67dee

Browse files
authored
fix: use Client instead of BaseClient in network tile/image provider (#2011)
1 parent 7237b9b commit 3e67dee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/src/layer/tile_layer/tile_provider/network_image_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MapNetworkImageProvider extends ImageProvider<MapNetworkImageProvider> {
3232
/// The HTTP client to use to make network requests
3333
///
3434
/// Not included in [operator==].
35-
final BaseClient httpClient;
35+
final Client httpClient;
3636

3737
/// Whether to ignore exceptions and errors that occur whilst fetching tiles
3838
/// over the network, and just return a transparent tile

lib/src/layer/tile_layer/tile_provider/network_tile_provider.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class NetworkTileProvider extends TileProvider {
3434
/// [not yet supported in Dart](https://github.com/dart-lang/http/issues/424).
3535
NetworkTileProvider({
3636
super.headers,
37-
BaseClient? httpClient,
37+
Client? httpClient,
3838
this.silenceExceptions = false,
3939
}) : _httpClient = httpClient ?? RetryClient(Client());
4040

@@ -45,7 +45,7 @@ class NetworkTileProvider extends TileProvider {
4545
/// Long living client used to make all tile requests by
4646
/// [MapNetworkImageProvider] for the duration that this provider is
4747
/// alive
48-
final BaseClient _httpClient;
48+
final Client _httpClient;
4949

5050
/// Each [Completer] is completed once the corresponding tile has finished
5151
/// loading

0 commit comments

Comments
 (0)