Flutter - How To Resize An Image To Its Parent's Size

Flutter Mentor
Flutter Mentor
27.2 هزار بار بازدید - 3 سال پیش - We've all been through it,
We've all been through it, we have an image asset we want to place in our app but their sizes don't fit.

In this situation, the best option we've got is to adapt the image to the size we need to it to be by clipping it. But how do we go about doing that in Flutter?

Watch this very simple and quick tutorial on how to do it.

Disclaimer: I say some of the BoxFit enums act the same way, but I'm talking about this specific example. I'm sure there is a reason why there are multiple different options. Depending on the case scenario, they could make a difference. Make sure to read the documentation fully.

BoxFit Class documentation: https://api.flutter.dev/flutter/paint...

00:00 - Intro
00:40 - Contextualizing The Example
01:13 - Adapting The Image's Size
02:52 - Different Sizing Options
04:45 - Like & Subscribe
04:53 - Flutter Mentor Out

#fittoparent #images #resizing

Credits:

OUTRO SONG:
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library Mitsubachi – Smith The Mister (No Cop...
3 سال پیش در تاریخ 1400/03/17 منتشر شده است.
27,278 بـار بازدید شده
... بیشتر