I am trying to develop an app which has a container which contains a network image now I want that size of the container to adjust according to the size or image like if the image is in portrait the container height should set accordingly and if the image is in landscape it can adjust accordingly
Just wrap a Container
around your Image
widget.
I put you an exemple on this codepen: https://codepen.io/blkkkbvsik/pen/MWKWwwN