Use different box fit according to the image width and height

Widgets & Design

Hello,

I'm making an event App. Event images come from different organizers who use different image styles (Instagram type : height > width, Facebook cover : width > height).

I'd like to wrap 2 images in a container and add a visibility condition on each

First image with a cover Box Fit : condition => image width > height

Second image with a contain Box Fit : condition => image width <= height

I cannot see how to do that.

Thank you for any help and have a great 2025

What have you tried so far?

I've tried to add a visibility condition and found "image url" but I don't see where I could find its width and height knowing that of course the image is not in the assets and comes as a URL.

Did you check FlutterFlow's Documentation for this topic?
No
1