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

Publicado em: 07 Junho 2021
no canal de: Flutter Mentor
27,527
172

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...  


Nesta página do site você pode assistir ao vídeo on-line Flutter - How To Resize An Image To Its Parent's Size duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Flutter Mentor 07 Junho 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 27,527 vezes e gostou 172 espectadores. Boa visualização!