Rows and Columns in Flutter : Complete Flutter Tutorial

The rows and columns are the most basic blocks of Flutter app development. Any and all the widgets you have will either be in rows or columns

Well, I am back after a long break and this break has taught me many new things about app development in general. So with many things to share with you guys, let's start with Rows and Columns in Flutter. You can also have a look at my previous post where I have explained about working with Images in Flutter. So without any further ado, let's start with Rows and Columns in Flutter.

Rows and Columns in Flutter

If you have developed apps for android, you know there are many layouts such as Relative Layout, Constraint Layout, and so on but in Flutter, the designs are solely based on Rows and Columns only. You can fit a Row inside a Column, Column inside a Row, and so on to create a range of different UI screens that fit on the screen of any sizes. 

If you have even been into Android Development, think of Rows and Columns as Linear Layout with horizontal and vertical orientations. The rows and columns are the most basic blocks of Flutter app development. Any and all the widgets you have will either be in rows or columns. Here is the code for the Row and Column widget in the flutter.

Row Widget:

[Row(children:<Widget>[//Widgets come here])]

Column Widget:

[Column(children:<Widget>[//Widgets come here])]

Row and columns have one main attribute. Which is mainAxisAlignment. There are several different options for this attribute like MainAxisAlignment.center, MainAxisAlignment.start, MainAxisAlignment.end. These attributes align the widgets at the start, end, and center of the row/column respectively. The other options are spaceEvenly, which spaces children evenly across the screen of the device, spaceBetween, which spaces children at the start and end of the row/column, and so on. 

Though the widgets are not scrollable they become once they have wrapped with SingleChildScrollContainer() widget. You can play around with the code of Rows and Columns at https://codepen.io/flutter. 

Rows and Columns in Flutter official documentation

COMMENTS

BLOGGER
Name

Affiliate marketing tutorial,2,Android,60,Android Development,22,Android tutorials,41,Blogging tactics,8,Deals,1,DSA,4,Elite Youtube Tutorial,4,Firebase,1,Flutter,4,Fuchsia,1,Hosting Guides,3,Leetcode,4,Miscellaneous,10,Mobile Gaming,17,NTN,94,Problogging,7,PUBG,16,Reviews,1,SEO Tutorial,5,Start a blog,9,Start a channel,6,Top 5,4,Travel Blogging,4,Windows,12,Windows Security,4,Windows tutorials,7,Wordpress Tutorials,4,Youtube Tutorials,11,
ltr
item
A Passionate Developers Creation: Rows and Columns in Flutter : Complete Flutter Tutorial
Rows and Columns in Flutter : Complete Flutter Tutorial
The rows and columns are the most basic blocks of Flutter app development. Any and all the widgets you have will either be in rows or columns
A Passionate Developers Creation
https://www.apdevc.com/2020/09/rows-and-columns-in-flutter.html
https://www.apdevc.com/
https://www.apdevc.com/
https://www.apdevc.com/2020/09/rows-and-columns-in-flutter.html
true
3690156770086819421
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content