feat: show remainder assets info (#21114)

* feat: show remainder assets info

* pr feedback
This commit is contained in:
Alex
2025-08-21 12:18:31 -05:00
committed by GitHub
parent 66c657ca8a
commit ab2849781a
11 changed files with 195 additions and 45 deletions

View File

@@ -24,18 +24,11 @@ class RemoteImageRequest extends ImageRequest {
}
try {
Stopwatch? stopwatch;
if (!kReleaseMode) {
stopwatch = Stopwatch()..start();
}
final buffer = await _downloadImage(uri);
if (buffer == null) {
return null;
}
if (!kReleaseMode) {
stopwatch!.stop();
debugPrint('Remote image download $requestId took ${stopwatch.elapsedMilliseconds}ms for $uri');
}
return await _decodeBuffer(buffer, decode, scale);
} catch (e) {
if (_isCancelled) {
@@ -139,8 +132,5 @@ class RemoteImageRequest extends ImageRequest {
void _onCancelled() {
_request?.abort();
_request = null;
if (!kReleaseMode) {
debugPrint('Cancelled remote image request $requestId for $uri');
}
}
}