08 - Align |

Veröffentlicht am: 12 November 2023
auf dem Kanal: TECHIE BLOSSOM
382
19

#shorts #flutter #align #widgets

Align widget helps in aligning the widget with respect to its parent. Like in the example, the logo is aligned towards top left side of this wrapped box. The box indicates allowed space for Logo to align.

On changing the alignment to topCenter, you can notice the movement.

There are set of alignments defined already.

Like topLeft, topCenter, topRight.

Then centerLeft, center, and centerRight.

And lastly, bottomLeft, bottomCenter and bottomRight.

Well, you can also define height Factor. This height factor will be used to calculate height of the Align widget. You see, the height of wrapping box is now 1.5 times the logo height.

When height factor is 2, it’s double the height of logo.

And, similarly width factor can also be applied.

You saw some pre-defined Alignments. But, internally they are just x and y values. So, you can give a custom one as well.

Nominate as a Github Star: https://bit.ly/3dLXFWJ (@TechieBlossom)
Support Us in any of the below ways:
💜   / techieblossom  
💜 https://www.buymeacoffee.com/AGd0Xngci

Contributions:
👨🏻‍💻   / prateeksharma  
👨🏻‍💻 https://www.github.com/TechieBlossom

Feel free to connect with me:
🤝   / sharmaprateek7  
🤝 https://www.topmate.io/prateeksharma


Auf dieser Seite können Sie das Online-Video 08 - Align | mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer TECHIE BLOSSOM 12 November 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 382 Mal angesehen und es wurde von 19 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!