chore: placeholder fade off / write to cache always

This commit is contained in:
2025-05-16 12:58:45 +01:00
parent c7435d5772
commit b630b59e53
2 changed files with 3 additions and 0 deletions

View File

@ -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),

View File

@ -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((_) {