mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 20:08:50 +00:00
chore: placeholder fade off / write to cache always
This commit is contained in:
@ -103,6 +103,8 @@ class ProxyImg extends StatelessWidget {
|
|||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
|
placeholderFadeInDuration: Duration.zero,
|
||||||
|
fadeOutDuration: Duration.zero,
|
||||||
placeholder:
|
placeholder:
|
||||||
(ctx, url) =>
|
(ctx, url) =>
|
||||||
SvgPicture.asset("assets/svg/logo.svg", height: placeholderSize),
|
SvgPicture.asset("assets/svg/logo.svg", height: placeholderSize),
|
||||||
|
@ -40,6 +40,7 @@ class _RxFilter<T> extends State<RxFilter<T>> {
|
|||||||
_response = ndk.requests.subscription(
|
_response = ndk.requests.subscription(
|
||||||
filters: widget.filters,
|
filters: widget.filters,
|
||||||
explicitRelays: widget.relays,
|
explicitRelays: widget.relays,
|
||||||
|
cacheWrite: true
|
||||||
);
|
);
|
||||||
if (!widget.leaveOpen) {
|
if (!widget.leaveOpen) {
|
||||||
_response.future.then((_) {
|
_response.future.then((_) {
|
||||||
|
Reference in New Issue
Block a user