Compare commits

..

3 Commits

Author SHA1 Message Date
dom
baef1655d6 Release 2.0.5
Signed-off-by: dom <githubaccount56556@proton.me>
2026-04-25 14:32:59 +08:00
dom
8fd5f353e4 replace errorWidget with errorBuilder in CachedNetworkSVGImage
Signed-off-by: dom <githubaccount56556@proton.me>
2026-04-25 13:24:33 +08:00
dom
326291de23 upgrade deps
Signed-off-by: dom <githubaccount56556@proton.me>
2026-04-25 13:17:25 +08:00
4 changed files with 10 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ class CachedNetworkSVGImage extends StatefulWidget {
Key? key,
String? cacheKey,
Widget? placeholder,
Widget? errorWidget,
WidgetBuilder? errorBuilder,
double? width,
double? height,
Map<String, String>? headers,
@@ -31,7 +31,7 @@ class CachedNetworkSVGImage extends StatefulWidget {
}) : _url = url,
_cacheKey = cacheKey,
_placeholder = placeholder,
_errorWidget = errorWidget,
_errorBuilder = errorBuilder,
_width = width,
_height = height,
_headers = headers,
@@ -50,7 +50,7 @@ class CachedNetworkSVGImage extends StatefulWidget {
final String _url;
final String? _cacheKey;
final Widget? _placeholder;
final Widget? _errorWidget;
final WidgetBuilder? _errorBuilder;
final double? _width;
final double? _height;
final Map<String, String>? _headers;
@@ -172,7 +172,8 @@ class _CachedNetworkSVGImageState extends State<CachedNetworkSVGImage> {
Widget _buildPlaceholderWidget() => Center(child: widget._placeholder);
Widget _buildErrorWidget() => Center(child: widget._errorWidget);
Widget _buildErrorWidget() =>
Center(child: widget._errorBuilder?.call(context));
Widget? _buildSVGImage() {
if (_svgString == null) {

View File

@@ -101,7 +101,7 @@ class OpusContent extends StatelessWidget {
),
alignment: Alignment.centerLeft,
placeholderBuilder: (_) => Text(latex),
errorWidget: Text(latex),
errorBuilder: (_) => Text(latex),
),
);
default:

View File

@@ -181,10 +181,10 @@ packages:
dependency: "direct dev"
description:
name: build_runner
sha256: "4425a87d87d0d1303540f867994303f5b141ad2f6ecac7ac2cf8851f41c0cef1"
sha256: "22fdcc3cfeb9d974d7408718c4be15ec5e9b1b350088f3a6c88f154e74dd700d"
url: "https://pub.dev"
source: hosted
version: "2.14.0"
version: "2.14.1"
built_collection:
dependency: transitive
description:
@@ -1251,7 +1251,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "487209167d7174785a469b929e19a7c587671117"
resolved-ref: "731bb77e39cca77065c86ece38902d35f5d653d2"
url: "https://github.com/bggRGjQaUbCoE/flutter_native_device_orientation.git"
source: git
version: "2.0.5"

View File

@@ -17,7 +17,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
# update when release
version: 2.0.4+1
version: 2.0.5+1
environment:
sdk: ">=3.10.0"