Comment on page
Row
Here’s how the Row arranges its children:

Row
As shown in the figure above, the Main Axis and the Cross Axis are two important properties of the Row. For a Row, the Main Axis runs horizontally, and the Cross Axis runs vertically. By default, all the children inside the Row will be arranged in a horizontal fashion.
To add a Row widget in your project:
- 1.Drag the Row widget from the Layout Elements tab (in the Widget Panel) or add it directly from the widget tree.
- 2.Next, add a few Image widgets from the Base Element section.

The Main Axis Size defines how much space a Row should occupy in the main axis (i.e., horizontal direction).
You can set the main axis size using the following two options:
- Minimum(): Make Row occupy the minimum amount of size on the main axis. This option makes Row size equal to the total size of children inside.
- Maximum(): Make Row occupy the maximum amount of size on the main axis. This option fills all the available space on the main axis.
To change the main axis size:
- 1.Select the Row from the widget tree or the canvas area.
- 2.Move to the Property Editor and scroll down to Main Axis Size.
- 3.Select either Minimum() or Maximum() option based on your requirement.
Minimum
Maximum


The Main Axis for a Row Widget is the horizontal axis, so adjusting this will change how the child widgets are horizontally distributed in the Row.
You can adjust the main axis alignment using the following options:
- Start (): Place children elements as close to the beginning as possible.
- Center (): Place children elements as close to the middle as possible.
- End (): Place children elements as close to the end as possible.
- Space Evenly (): Evenly space children elements.
- Space Around (): Place the free space evenly between the children with some extra space at the beginning and end.
- Space Between (): Place the free space evenly between the children.
To change the Main Axis Alignment:
- 1.Select the Row from the widget tree or from the canvas area.
- 2.Move to the Property Editor and scroll down to Main Axis Alignment.
- 3.Select from the options displayed including Start, Center, End, Space evenly, Space between, and Space around.
The default Main Axis Alignment set to the Row is Start.
.gif?alt=media&token=7f6b5722-c467-4ce2-ab74-da16ba9e0371)
The Cross Axis for a Row Widget is the vertical axis, so adjusting this will change how the child widgets are vertically distributed in the Row.
You can adjust the cross axis alignment using the following options:
- Start (): Place children elements as close to the beginning as possible.
- Center (): Place children elements as close to the middle as possible.
- End (): Place children elements as close to the end as possible.
- Stretch (): Make children fill the cross axis (vertically).
To change the Cross Axis Alignment:
- 1.Select the Row from the widget tree or the canvas area.
- 2.Move to the Property Editor and scroll down to Cross Axis Alignment.
- 3.Select from the options displayed, including Start, Center, End, and Stretch.
The default Cross Axis Alignment set to the Row is Center.
.gif?alt=media&token=16c730fd-c6e8-4052-b8f0-bd064ab13503)
To make a Row scrollable when there are many children, check the Scrollable box.
.gif?alt=media&token=0c132151-46bf-4406-abfd-29090c3b55db)
You might be storing data on Firebase or your own server. Let's see how to load items and display them on the Column widget.
Backend Queries on a Column can cause performance issues if the number of items is >15. In that case, we recommend using a ListView or GridView instead.

Pictures collection

Showing pictures from Firestore
You may be using your own infrastructure to store your app data. The data can be retrieved via API calls.
Before we show data from an API call, make sure you incorporate all the mentioned prerequisites.
If you haven't set up API calls at your backend side yet, you can use any open API to try it out. Maybe you can try this https://picsum.photos/v2/list.
After adding an API call in FlutterFlow, it looks like this:

Making an API call allows you to get a response (containing the list of items) and show them in the Row.
To make an API call on a Row:
- 1.Select the Row widget from the widget tree or the canvas area.
- 2.Click on the Backend Query tab (on the right side of your screen).
- 3.Set the Query Type to API Call.
- 4.Set the Call Name to the API Name that fetches the data.
- 5.Click Save.
.gif?alt=media&token=8d104ebe-8a5e-4de1-9eb3-a54abd653541)
Generating dynamic children help you prepare a list of items present in the API response. The returned result is stored in a variable that you can use to populate the Row.
To generate dynamic children:
- 1.Select Row from the widget tree or the canvas area.
- 2.Click on the Generate Dynamic Children tab (on the right side of your screen).
- 3.Enter the appropriate Variable Name.
- 4.Set the Source value to the [apicall_name] Response (from Row).
- 5.Set the Response Options to JSON Body.
- 6.Under the Available Options, click on Unset and select the JSON Path.
- 7.Inside the JSON Path, enter the JSON expression to retrieve the list. See how to get JSON Path here.
- 8.Click Save.
.gif?alt=media&token=95a41d11-ecf4-4a7c-b085-3dce4bfb6787)
To show an image from the URL stored inside the JSON key:
- 1.Select the Image widget, move to the properties panel, find the Path property and click on the Set from Variable text.
- 2.Select the [variable_name] item from the list. This should be the variable name you specified while Generating Children from Variable.
- 3.Set the Available Options to JSON Path.
- 4.Inside the JSON Path, enter the JSON expression to retrieve the image URL. See how to get JSON Path here.
- 5.Click Confirm.

Showing Data in UI Elements
Here's how it looks when you run your app:
.gif?alt=media&token=34be492f-cdda-4481-b7c3-6ab5a98bf1a7)
If you prefer watching a video tutorial, here's the one for you:
Last modified 2mo ago