How to center column and row item in Flutter?
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
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,