Omar Shamali

crossaxisalignment VS mainaxisalignment Flutter Dart

Author: Omar Shamali
Writing Date:

The difference between crossaxisalignment and mainaxisalignment in widgets in Flutter / Dart is that:

For Column widget, the mainaxisalignment will define the vertical alignment, where as the crossaxisalignment will define the horizontal alignment of children.

For Row widget, the mainaxisalignment will define the horizontal alignment, where as the crossaxisalignment will define the vertical alignment of children.