mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-08 20:14:51 +08:00
Compare commits
3 Commits
1761a9abc9
...
2.0.5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
baef1655d6 | ||
|
|
8fd5f353e4 | ||
|
|
326291de23 |
@@ -14,7 +14,7 @@ class CachedNetworkSVGImage extends StatefulWidget {
|
|||||||
Key? key,
|
Key? key,
|
||||||
String? cacheKey,
|
String? cacheKey,
|
||||||
Widget? placeholder,
|
Widget? placeholder,
|
||||||
Widget? errorWidget,
|
WidgetBuilder? errorBuilder,
|
||||||
double? width,
|
double? width,
|
||||||
double? height,
|
double? height,
|
||||||
Map<String, String>? headers,
|
Map<String, String>? headers,
|
||||||
@@ -31,7 +31,7 @@ class CachedNetworkSVGImage extends StatefulWidget {
|
|||||||
}) : _url = url,
|
}) : _url = url,
|
||||||
_cacheKey = cacheKey,
|
_cacheKey = cacheKey,
|
||||||
_placeholder = placeholder,
|
_placeholder = placeholder,
|
||||||
_errorWidget = errorWidget,
|
_errorBuilder = errorBuilder,
|
||||||
_width = width,
|
_width = width,
|
||||||
_height = height,
|
_height = height,
|
||||||
_headers = headers,
|
_headers = headers,
|
||||||
@@ -50,7 +50,7 @@ class CachedNetworkSVGImage extends StatefulWidget {
|
|||||||
final String _url;
|
final String _url;
|
||||||
final String? _cacheKey;
|
final String? _cacheKey;
|
||||||
final Widget? _placeholder;
|
final Widget? _placeholder;
|
||||||
final Widget? _errorWidget;
|
final WidgetBuilder? _errorBuilder;
|
||||||
final double? _width;
|
final double? _width;
|
||||||
final double? _height;
|
final double? _height;
|
||||||
final Map<String, String>? _headers;
|
final Map<String, String>? _headers;
|
||||||
@@ -172,7 +172,8 @@ class _CachedNetworkSVGImageState extends State<CachedNetworkSVGImage> {
|
|||||||
|
|
||||||
Widget _buildPlaceholderWidget() => Center(child: widget._placeholder);
|
Widget _buildPlaceholderWidget() => Center(child: widget._placeholder);
|
||||||
|
|
||||||
Widget _buildErrorWidget() => Center(child: widget._errorWidget);
|
Widget _buildErrorWidget() =>
|
||||||
|
Center(child: widget._errorBuilder?.call(context));
|
||||||
|
|
||||||
Widget? _buildSVGImage() {
|
Widget? _buildSVGImage() {
|
||||||
if (_svgString == null) {
|
if (_svgString == null) {
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class OpusContent extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
placeholderBuilder: (_) => Text(latex),
|
placeholderBuilder: (_) => Text(latex),
|
||||||
errorWidget: Text(latex),
|
errorBuilder: (_) => Text(latex),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -181,10 +181,10 @@ packages:
|
|||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: build_runner
|
name: build_runner
|
||||||
sha256: "4425a87d87d0d1303540f867994303f5b141ad2f6ecac7ac2cf8851f41c0cef1"
|
sha256: "22fdcc3cfeb9d974d7408718c4be15ec5e9b1b350088f3a6c88f154e74dd700d"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.14.0"
|
version: "2.14.1"
|
||||||
built_collection:
|
built_collection:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -1251,7 +1251,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: master
|
ref: master
|
||||||
resolved-ref: "487209167d7174785a469b929e19a7c587671117"
|
resolved-ref: "731bb77e39cca77065c86ece38902d35f5d653d2"
|
||||||
url: "https://github.com/bggRGjQaUbCoE/flutter_native_device_orientation.git"
|
url: "https://github.com/bggRGjQaUbCoE/flutter_native_device_orientation.git"
|
||||||
source: git
|
source: git
|
||||||
version: "2.0.5"
|
version: "2.0.5"
|
||||||
|
|||||||
@@ -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
|
# 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.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
# update when release
|
# update when release
|
||||||
version: 2.0.4+1
|
version: 2.0.5+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.10.0"
|
sdk: ">=3.10.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user