QuickDevGuide

Home › Flutter

Widgets & UI Building — Flutter

In Flutter, everything is a widget. Widgets are the building blocks of the UI — from layout containers to buttons to entire screens. StatelessWidget — No Internal State StatefulWidget — Manages Internal State Common Layout Widgets Widget Purpose Column Vertical layout Row Horizontal layout Stack Overlapping widgets ListView Scrollable list GridView Scrollable grid Padding Add padding around a widget SizedBox Fixed-size spacing Expanded Fill remaining space in Row/Column Container Box model with decoration, padding, margin Scaffold Screen layout with AppBar, body, FAB When to Use Which Widget Type Need Widget Type Static display only StatelessWidget Internal animation/timer StatefulWidget External data (API, DB) ConsumerWidget (Riverpod) Form with validation StatefulWidget + reactiveforms

Key Takeaways