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

Publicado el: 07 junio 2021
en el 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...  


En esta página del sitio puede ver el video en línea Flutter - How To Resize An Image To Its Parent's Size de Duración hora minuto segunda en buena calidad , que subió el usuario Flutter Mentor 07 junio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 27,527 veces y le gustó 172 a los espectadores. Disfruta viendo!