โ Flutter & Dart learning pathFlutter & Dart ยท Module 3 of 10
Widgets and layout
Everything in Flutter is a widget; compose them to build screens.
๐ Key ideas
- Widgets describe part of the UI: Text, Icon, Image, Container.
- Layout widgets: Row, Column, Stack, Expanded, Padding.
- MaterialApp and Scaffold give app structure (AppBar, body).
- Widgets form a tree.
- Use const constructors where possible for performance.
๐ก Real-life example: Widgets are nesting dolls: small pieces inside bigger pieces make the full screen.
WidgetBuilding block of Flutter UI
Row/ColumnHorizontal/vertical layout
ScaffoldBasic screen structure
ExpandedFills available space