Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cached_network_image/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [4.0.4] - 2026-09-30

* Bump `flutter_cache_manager` to `^3.4.5`, `material_ui` to `^1.3.0`, `octo_image` to `^2.1.1` and `mocktail` to `^1.0.5`
* Update the example to `flutter_lints` `^6.0.0`, `flutter_blurhash` `^0.9.1` and `baseflow_plugin_template` `^2.2.1`, raise its SDK constraint to match the package, and reformat it for the tall style that constraint selects

## [4.0.3] - 2026-09-29

* Use the image URL as the `debugLabel` of the emitted image, so image size warnings report the URL instead of `Image null`
Expand Down
31 changes: 11 additions & 20 deletions cached_network_image/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ class BasicContent extends StatelessWidget {
_sizedContainer(
CachedNetworkImage(
progressIndicatorBuilder: (context, url, progress) => Center(
child: CircularProgressIndicator(
value: progress.progress,
),
child: CircularProgressIndicator(value: progress.progress),
),
imageUrl:
'https://images.unsplash.com/photo-1532264523420-881a47db012d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9',
Expand Down Expand Up @@ -89,10 +87,8 @@ class BasicContent extends StatelessWidget {
backgroundColor: Colors.amber,
radius: 150,
),
imageBuilder: (context, image) => CircleAvatar(
backgroundImage: image,
radius: 150,
),
imageBuilder: (context, image) =>
CircleAvatar(backgroundImage: image, radius: 150),
),
_sizedContainer(
CachedNetworkImage(
Expand All @@ -111,7 +107,8 @@ class BasicContent extends StatelessWidget {
errorListener: (e) {
if (e is SocketException) {
debugPrint(
'Error with ${e.address} and message ${e.message}');
'Error with ${e.address} and message ${e.message}',
);
} else {
debugPrint('Image Exception is: ${e.runtimeType}');
}
Expand Down Expand Up @@ -149,11 +146,7 @@ class BasicContent extends StatelessWidget {
}

Widget _sizedContainer(Widget child) {
return SizedBox(
width: 300,
height: 150,
child: Center(child: child),
);
return SizedBox(width: 300, height: 150, child: Center(child: child));
}
}

Expand All @@ -173,11 +166,8 @@ class ListContent extends StatelessWidget {
children: <Widget>[
CachedNetworkImage(
imageUrl: 'https://loremflickr.com/320/240/music?lock=$index',
placeholder: (BuildContext context, String url) => Container(
width: 320,
height: 240,
color: Colors.purple,
),
placeholder: (BuildContext context, String url) =>
Container(width: 320, height: 240, color: Colors.purple),
),
],
),
Expand All @@ -199,8 +189,9 @@ class GridContent extends StatelessWidget {
Widget build(BuildContext context) {
return GridView.builder(
itemCount: 250,
gridDelegate:
const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 3,
),
itemBuilder: (BuildContext context, int index) => CachedNetworkImage(
imageUrl: 'https://loremflickr.com/100/100/music?lock=$index',
placeholder: _loader,
Expand Down
12 changes: 6 additions & 6 deletions cached_network_image/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ publish_to: none
version: 1.0.0+1

environment:
sdk: ^3.0.0
flutter: '>=3.10.0'
sdk: ^3.12.0
flutter: '>=3.44.0'

dependencies:
baseflow_plugin_template: ^2.2.0
baseflow_plugin_template: ^2.2.1
cached_network_image:
path: ../
flutter:
sdk: flutter
flutter_blurhash: ^0.8.2
flutter_blurhash: ^0.9.1

material_ui: ^1.0.0
material_ui: ^1.3.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_lints: ^6.0.0

flutter:
uses-material-design: true
10 changes: 5 additions & 5 deletions cached_network_image/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ topics:
- cache
- image
- network-image
version: 4.0.3
version: 4.0.4

environment:
sdk: ^3.12.0
Expand All @@ -17,13 +17,13 @@ dependencies:
cached_network_image_web: ^2.0.0
flutter:
sdk: flutter
flutter_cache_manager: ^3.4.1
octo_image: ^2.1.0
flutter_cache_manager: ^3.4.5
octo_image: ^2.1.1

material_ui: ^1.0.0
material_ui: ^1.3.0
dev_dependencies:
file: '>=7.0.0 <8.0.0'
flutter_lints: ^6.0.0
flutter_test:
sdk: flutter
mocktail: ^1.0.4
mocktail: ^1.0.5
Loading