How to center column and row item in Flutter?

admin_img Posted By Bajarangi soft , Posted On 10-01-2022

in this blog we can make row items in center with flutter for android and ios application

row and columns item in center

here we are going to set row and column items in center with flutter in android and ios, here we can align text or icons  using of mainAxisAlignment, this code will help you to arrange inside item of row or column to make center with full screen of mobile.



Row(
mainAxisAlignment: MainAxisAlignment.center //Center Row contents horizontally,
crossAxisAlignment: CrossAxisAlignment.center  //Center Row contents vertically,
)

The solution to the same problem, Center Row Content Flutter, can also be found in a different method, which will be discussed further down with some code examples.

 
mainAxisAlignment: MainAxisAlignment.center //Center Column contents vertically,

Related Post