Skip to content

Commit

Permalink
fix: use Client instead of BaseClient in network tile/image provi…
Browse files Browse the repository at this point in the history
…der (#2011)
  • Loading branch information
slightfoot authored Jan 14, 2025
1 parent 7237b9b commit 3e67dee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MapNetworkImageProvider extends ImageProvider<MapNetworkImageProvider> {
/// The HTTP client to use to make network requests
///
/// Not included in [operator==].
final BaseClient httpClient;
final Client httpClient;

/// Whether to ignore exceptions and errors that occur whilst fetching tiles
/// over the network, and just return a transparent tile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class NetworkTileProvider extends TileProvider {
/// [not yet supported in Dart](https://github.com/dart-lang/http/issues/424).
NetworkTileProvider({
super.headers,
BaseClient? httpClient,
Client? httpClient,
this.silenceExceptions = false,
}) : _httpClient = httpClient ?? RetryClient(Client());

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

/// Each [Completer] is completed once the corresponding tile has finished
/// loading
Expand Down

0 comments on commit 3e67dee

Please sign in to comment.