#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: 💜 https://www.patreon.com/techieblossom 💜 https://www.buymeacoffee.com/AGd0Xngci Contributions: 👨🏻💻 https://www.medium.com/@prateeksharma 👨🏻💻 https://www.github.com/TechieBlossom Feel free to connect with me: 🤝 https://www.twitter.com/SharmaPrateek7 🤝 https://www.topmate.io/prateeksharma
More like this
Article 18 min readFlutter — BoxDecoration Cheat Sheet
The BoxDecoration class provides a variety of ways to draw a box.
Read on medium.com- Library
fluttervn/super_widgets
Make Flutter widgets' code shorter and richer by combining multiple widgets into a single widget but the single one will inherit almost properties of all original widgets.
View on github.com
Article 14 min readDebugging layout sizing problems in Flutter
by @https://twitter.com/punit__d
Using combination of reading Flutter documentation and Dart DevTools to understand and fix layout problems in Flutter
Read on punitd.dev
Article 5 min readFlutter Boring tab to Cool tab
by @ishanfx
Show the way of modifying the flutter tab indicator with the app . Contain 5 different tab styles for the flutter app projects.
Read on mightytechno.com