diff --git a/cached_network_image/CHANGELOG.md b/cached_network_image/CHANGELOG.md index 6c0e98b5..a70f48b0 100644 --- a/cached_network_image/CHANGELOG.md +++ b/cached_network_image/CHANGELOG.md @@ -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` 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, 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 2586d363..95c18e5c 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.3 +version: 4.0.4 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