Baseflow / Baseflow/flutter_cached_network_image
Initial value of FilterQuality in cached_network_image is different from Flutter(since ver 3.24.0)'s default value.
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
## 🐛 Bug Report
In the CachedNetworkImage() method, the initial value of FilterQuality is **FilterQuality.low**, but in the Image() method of the Flutter SDK from Flutter 3.24.0, the initial value of filterQuality is **FilterQuality.medium**.
Details: [Flutter Official Release Notes](https://docs.flutter.dev/release/release-notes) -> [3.24.0 announcement](https://medium.com/flutter/whats-new-in-flutter-3-24-6c040f87d1e4)
### Expected behavior
It would be great if you could add a modification to follow the value of the Flutter SDK.
cached_image_widget.dart
```cached_image_widget.dart
CachedNetworkImage({
super.key,
~~~
this.filterQuality = FilterQuality.low,
~~~
}) : _image = CachedNetworkImageProvider(
```
image.dart in the Flutter SDK
```image.dart
Image.asset(
String name, {
super.key,
AssetBundle? bundle,
~~~
this.filterQuality = FilterQuality.medium,
~~~
}) : image = ResizeImage.resizeIfNeeded(
cacheWidth,
cacheHeight,
scale != null
? ExactAssetImage(name, bundle: bundle, scale: scale, package: package)
: AssetImage(name, bundle: bundle, package: package),
),
loadingBuilder = null,
assert(cacheWidth == null || cacheWidth > 0),
assert(cacheHeight == null || cacheHeight > 0);
```
**Version:** 3.4.1
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.