From 98fddfc0f2fb0fb0c192d1b8f7197232e0c26677 Mon Sep 17 00:00:00 2001 From: Rick van Dijk Date: Tue, 29 Sep 2026 12:15:48 +0800 Subject: [PATCH 1/2] Bump dependencies in cached_network_image Raise 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. material_ui 1.3.0 is the newest release that keeps the Dart ^3.12 / Flutter >=3.44 floor. Bring the example along: flutter_lints ^6.0.0, flutter_blurhash ^0.9.1, baseflow_plugin_template ^2.2.1, and an SDK constraint that matches the package it depends on. Co-Authored-By: Claude Opus 5.5 --- cached_network_image/CHANGELOG.md | 5 +++++ cached_network_image/example/pubspec.yaml | 12 ++++++------ cached_network_image/pubspec.yaml | 10 +++++----- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/cached_network_image/CHANGELOG.md b/cached_network_image/CHANGELOG.md index f8132405..92606cc4 100644 --- a/cached_network_image/CHANGELOG.md +++ b/cached_network_image/CHANGELOG.md @@ -1,3 +1,8 @@ +## [4.0.3] - 2026-09-29 + +* 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`, and raise its SDK constraint to match the package + ## [4.0.2] - 2026-09-23 * Bump `flutter_lints` to `^6.0.0` and drop the library name, fixing an `unnecessary_library_name` lint diff --git a/cached_network_image/example/pubspec.yaml b/cached_network_image/example/pubspec.yaml index a22af3e3..8a6cf932 100644 --- a/cached_network_image/example/pubspec.yaml +++ b/cached_network_image/example/pubspec.yaml @@ -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 diff --git a/cached_network_image/pubspec.yaml b/cached_network_image/pubspec.yaml index 3b9f2bae..0425e9f4 100644 --- a/cached_network_image/pubspec.yaml +++ b/cached_network_image/pubspec.yaml @@ -6,7 +6,7 @@ topics: - cache - image - network-image -version: 4.0.2 +version: 4.0.3 environment: sdk: ^3.12.0 @@ -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 From d05b75c6eb7fd79440f6e944dedbea11ca0a93b4 Mon Sep 17 00:00:00 2001 From: Rick van Dijk Date: Tue, 29 Sep 2026 12:24:25 +0800 Subject: [PATCH 2/2] Reformat the example for the tall style Raising the example's SDK constraint to ^3.12.0 selects the tall style formatter, which failed the Format check on example/lib/main.dart. Co-Authored-By: Claude Opus 5.5 --- cached_network_image/CHANGELOG.md | 2 +- cached_network_image/example/lib/main.dart | 31 ++++++++-------------- 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/cached_network_image/CHANGELOG.md b/cached_network_image/CHANGELOG.md index 92606cc4..c172a058 100644 --- a/cached_network_image/CHANGELOG.md +++ b/cached_network_image/CHANGELOG.md @@ -1,7 +1,7 @@ ## [4.0.3] - 2026-09-29 * 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`, and raise its SDK constraint to match the package +* 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.2] - 2026-09-23 diff --git a/cached_network_image/example/lib/main.dart b/cached_network_image/example/lib/main.dart index 57af3099..5a4d64d6 100644 --- a/cached_network_image/example/lib/main.dart +++ b/cached_network_image/example/lib/main.dart @@ -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', @@ -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( @@ -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}'); } @@ -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)); } } @@ -173,11 +166,8 @@ class ListContent extends StatelessWidget { children: [ 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), ), ], ), @@ -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,