flet icon indicating copy to clipboard operation
flet copied to clipboard

Fade in images with a placeholder

Open 7576457 opened this issue 10 months ago • 2 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the requested feature

When you provide an image URL in ft.Image, if the internet connection is slow, it can take a long time to load. It would be great to have the ability to know when the image has been displayed, similar to an on_loaded event like in ftv.Video.

Suggest a solution

No response

Screenshots

No response

Additional details

No response

7576457 avatar Mar 05 '25 14:03 7576457

From my search, this seems not to be possible in Flutter. (feel free to share a link if you find something)

Is this your goal: https://docs.flutter.dev/cookbook/images/fading-in-images ?

ndonkoHenri avatar Mar 06 '25 04:03 ndonkoHenri

From my search, this seems not to be possible in Flutter. (feel free to share a link if you find something)

Is this your goal: https://docs.flutter.dev/cookbook/images/fading-in-images ?

I got you. This came to my mind while I was waiting for the image to load. And I thought about making a preloader, a sort of preloader.

Yes, I like what you're suggesting—that's my goal.

7576457 avatar Mar 06 '25 13:03 7576457