mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 03:58:09 +00:00
refactor: use ProxyImg widget
This commit is contained in:
@ -53,9 +53,7 @@ class _StreamPage extends State<StreamPage> {
|
||||
autoPlay: true,
|
||||
placeholder:
|
||||
(widget.stream.info.image?.isNotEmpty ?? false)
|
||||
? CachedNetworkImage(
|
||||
imageUrl: proxyImg(context, widget.stream.info.image!),
|
||||
)
|
||||
? ProxyImg(url: widget.stream.info.image!)
|
||||
: null,
|
||||
);
|
||||
});
|
||||
@ -109,9 +107,7 @@ class _StreamPage extends State<StreamPage> {
|
||||
color: LAYER_1,
|
||||
child:
|
||||
(stream.info.image?.isNotEmpty ?? false)
|
||||
? CachedNetworkImage(
|
||||
imageUrl: proxyImg(context, stream.info.image!),
|
||||
)
|
||||
? ProxyImg(url: stream.info.image!)
|
||||
: null,
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user