0
0
Fluttermobile~5 mins

Column and Row in Flutter - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Column widget in Flutter?
A Column widget arranges its child widgets vertically, one below the other, like stacking blocks in a column.
Click to reveal answer
beginner
What does the Row widget do in Flutter?
A Row widget arranges its child widgets horizontally, side by side, like items on a shelf.
Click to reveal answer
intermediate
How do you control the alignment of children inside a Column or Row?
Use properties like mainAxisAlignment to align children along the main axis (vertical for Column, horizontal for Row), and crossAxisAlignment for the opposite axis.
Click to reveal answer
intermediate
What happens if children inside a Row or Column overflow the available space?
If children take more space than available, Flutter shows an overflow error (yellow and black stripes). You can fix this by wrapping children with Expanded or Flexible widgets or using scrolling widgets.
Click to reveal answer
intermediate
Why use Expanded inside a Row or Column?
Expanded tells a child widget to fill the remaining space in the main axis, helping to create flexible layouts that adapt to screen size.
Click to reveal answer
Which widget arranges children vertically in Flutter?
AContainer
BRow
CStack
DColumn
What property controls the main axis alignment in a Row?
AmainAxisAlignment
BcrossAxisAlignment
Calignment
Ddirection
If children overflow in a Row, what widget can help fix this?
AText
BExpanded
CPadding
DScaffold
Which axis is the cross axis in a Column?
AHorizontal
BVertical
CDiagonal
DNone
What will happen if you put multiple children in a Row without constraints and they are too wide?
AThey will wrap automatically
BThey will be hidden
COverflow error with yellow-black stripes
DThey will stack vertically
Explain how Column and Row widgets arrange their children and how you can control their alignment.
Think about stacking blocks vertically or lining them up horizontally.
You got /3 concepts.
    Describe what causes overflow errors in Column or Row and how to prevent them.
    Imagine trying to fit too many items on a small shelf.
    You got /4 concepts.