chore: switch to cached_network_image
This commit is contained in:
parent
1521190fea
commit
644cded981
9 changed files with 29 additions and 81 deletions
|
|
@ -2,7 +2,7 @@ import 'package:famedlysdk/famedlysdk.dart';
|
|||
import 'package:fluffychat/components/image_bubble.dart';
|
||||
import 'package:fluffychat/components/matrix.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_advanced_networkimage/zoomable.dart';
|
||||
import 'package:photo_view/photo_view.dart';
|
||||
import '../utils/event_extension.dart';
|
||||
|
||||
class ImageView extends StatelessWidget {
|
||||
|
|
@ -41,7 +41,7 @@ class ImageView extends StatelessWidget {
|
|||
),
|
||||
],
|
||||
),
|
||||
body: ZoomableWidget(
|
||||
body: PhotoView.customChild(
|
||||
minScale: 1.0,
|
||||
maxScale: 10.0,
|
||||
child: ImageBubble(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_advanced_networkimage/provider.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:bot_toast/bot_toast.dart';
|
||||
|
|
@ -329,11 +329,8 @@ class _EmoteImage extends StatelessWidget {
|
|||
height: size * devicePixelRatio,
|
||||
method: ThumbnailMethod.scale,
|
||||
);
|
||||
return Image(
|
||||
image: AdvancedNetworkImage(
|
||||
url,
|
||||
useDiskCache: !kIsWeb,
|
||||
),
|
||||
return CachedNetworkImage(
|
||||
imageUrl: url,
|
||||
fit: BoxFit.contain,
|
||||
width: size,
|
||||
height: size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue