chore: switch to cached_network_image
This commit is contained in:
parent
1521190fea
commit
644cded981
9 changed files with 29 additions and 81 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_advanced_networkimage/provider.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
|
||||
import 'matrix.dart';
|
||||
|
||||
|
|
@ -48,13 +48,10 @@ class ContentBanner extends StatelessWidget {
|
|||
opacity: 0.75,
|
||||
child: !loading
|
||||
? mxContent != null
|
||||
? Image(
|
||||
? CachedNetworkImage(
|
||||
imageUrl: src,
|
||||
height: 300,
|
||||
fit: BoxFit.cover,
|
||||
image: AdvancedNetworkImage(
|
||||
src,
|
||||
useDiskCache: !kIsWeb,
|
||||
),
|
||||
)
|
||||
: Icon(defaultIcon, size: 300)
|
||||
: Icon(defaultIcon, size: 300),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue