Row Widget in Flutter

This article is all about the Row Widget in Flutter. Whatever is mentioned here about the Row Widget is sufficient for you to build any app that uses it.

The Row Widget in Flutter is used to arrange widgets in a horizontal direction.

The Row Widget mainly has three important properties:

  1. mainAxisAlignment
  2. crossAxisAlignment
  3. mainAxisSize
  • mainAxisAlignment is used for arranging widgets horizontally (left, right, center, spaceBetween, etc.).
  • crossAxisAlignment is used to arrange widgets vertically within the row.
  • mainAxisSize decides how much horizontal space the Row should take.

MainAxisAlignment:

CrossAxisAlignment:

MainAxisSize:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top