Browse Source

image

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

12
lib/union/store_details_page.dart

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

2
lib/view_widget/custom_image.dart

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

Loading…
Cancel
Save