How to crop an image in Flutter?

Posted by Andre Scott | Updated on

Want to crop an image in Flutter? I would probably use a BoxDecoration with a DecorationImage. You can use the alignment and fit properties to determine how your image is cropped. You can use an AspectRatio widget if you don’t want to hard code a height on the Container.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers