Browse Source

image

null_safety
fmk 4 years ago
parent
commit
6da1ad39af
  1. 10
      lib/union/store_details_page.dart
  2. 2
      lib/view_widget/custom_image.dart

10
lib/union/store_details_page.dart

@ -228,9 +228,15 @@ class _StoreDetailsPage extends State<StoreDetailsPage> {
assetUriMatcher(): assetImageRender(), assetUriMatcher(): assetImageRender(),
networkSourceMatcher(extension: "svg"): networkSourceMatcher(extension: "svg"):
svgNetworkImageRender(), svgNetworkImageRender(),
networkSourceMatcher(): networkImageRender(loadingWidget: () { networkSourceMatcher(): networkImageRender(
loadingWidget: () {
return Container(); return Container();
}), },
mapUrl: (url) {
print("objectUrl: $url");
return "$url?imageMogr2/format/webp/blur/1x0/quality/75";
}
),
}, },
customRender: { customRender: {
"video" : (context, parsedChild, attributes, element) { "video" : (context, parsedChild, attributes, element) {

2
lib/view_widget/custom_image.dart

@ -28,7 +28,7 @@ class MImage extends StatelessWidget {
var clipRRect = ClipRRect( var clipRRect = ClipRRect(
borderRadius: radius, borderRadius: radius,
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: "$src?imageMogr2/thumbnail/640x640/format/webp/blur/1x0/quality/75", imageUrl: "$src?imageMogr2/format/webp/blur/1x0/quality/75",
cacheManager: DefaultCacheManager(), cacheManager: DefaultCacheManager(),
fadeInDuration: Duration(milliseconds: 300), fadeInDuration: Duration(milliseconds: 300),
fadeOutDuration: Duration(milliseconds: 300), fadeOutDuration: Duration(milliseconds: 300),

Loading…
Cancel
Save