ZupIT/beagle

[Flutter] ImageContentMode = FIT_CENTER doesn't work as expected

Closed this issue · 0 comments

Flutter doesn't have a BoxFit value with behavior equivalent to Beagle's ImageContentMode.FIT_CENTER. The closest to it is BoxFit.contain, so this is the current implementation.

The difference between ImageContentMode.FIT_CENTER and BoxFit.contain is that the first keeps the original image size if the space available is larger than necessary, while the second enlarges the image.

Resources: