On flutter web, when using image transformations, the results are being cached. When I replace an image, the old version still appears. Is it possible to manually clear the cache? Also, how long does the cache last before it expires?
FutureBuilder( key: ValueKey('photo-${widget.user?.id ?? '--'}'), future: storage.getFilePreview( bucketId: Environment.profilePhotos, fileId: widget.user!.id!, // Image name gravity: ImageGravity.center, output: ImageFormat.webp, width: 100, ), //works for both public file and private file, for private files you need to be logged in builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { return CircularProgressIndicator(); } if (snapshot.connectionState == ConnectionState.done && snapshot.hasData && snapshot.data != null) { return Image.memory(snapshot.data!, width: widget.radius, height: widget.radius); }
return CircleAvatar(minRadius: widget.radius, maxRadius: widget.radius, child: Text(widget.user?.getGivenFirstLetter ?? '--'));
}, );
Recommended threads
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...
- Oauth issue
Hi, can anyone help me in the Oauth issue, Its working fine in dev but its showing Invalid redirect during production. I have check the redirect url and all. St...
- Google/Apple OAuth to show continue to "...
hi everyone, I am building a react-native app with expo and appwrite. I have setup an OAuth flow with Google and Apple following this doc (https://appwrite.io/b...