#loading images with urls

11 messages · Page 1 of 1 (latest)

rich cove
#

I'm using url to load images in flutter by providing a url and editing the file id. It works fine but it's considered as a guest loading the image. I wanted to know the safety of this method

glad swan
rich cove
#

It needs me to set the permissions to any user to load image

#

The issue is images in pagination need to be catched so that they don't reload when i change state. That's why I'm opting for url

#

If I use a future to load a uint8list then it will refetch again when I change state by adding data to the list

glad swan
rich cove
#

Image.network(
'https://{hostname}/v1/storage/buckets/{bucketId}/files/{fileId}/view?project={projectId}',
headers: {"x-appwrite-jwt": jwt}
)

#

Like this right.?

#

Thanks alot

#

Cab you define dimensions in this url.??

glad swan