What’s Row?

A widget that displays its children in a horizontal array.

Check the official documentation for more.

Row explained for Android Developers

To cause a child to expand to fill the available horizontal space, wrap the child in an Expanded widget. The Row widget does not scroll and it is considered an error to have more children in a Row than will fit in the available room. This is similar to using LinearLayout in Android, where you can set the orientation to horizontal and manage child views accordingly.

Example Code

Here is an example of how to use Row:

const Row(
children: [
Expanded(
child: Text('Deliver features faster', textAlign: TextAlign.center),
),
Expanded(
child: Text('Craft beautiful UIs', textAlign: TextAlign.center),
),
Expanded(
child: FittedBox(
child: FlutterLogo(),
),
),
],
)

Row Remarks

The Row widget is essential for creating horizontal layouts in Flutter, allowing for flexible and responsive designs.

Bootstrap Your app with ShipFlutter

A fully customizable starter kit to seamlessly launch responsive Android, iOS, and Web apps with Flutter powered by Firebase and Vertex AI.