Everything is a Widget
Widgets describe configuration, not pixels. On state change Flutter rebuilds the widget tree, diffs against the Element tree (which holds state), and repaints only changed RenderObjects via Skia/Impeller.
Frontend & Mobile · 16 sections
Widget tree, state management, rendering, navigation, platform channels and the Dart language features (null safety, async, isolates) that Flutter interviews assume you know.
Widgets describe configuration, not pixels. On state change Flutter rebuilds the widget tree, diffs against the Element tree (which holds state), and repaints only changed RenderObjects via Skia/Impeller.
Stateless: immutable config, no state. StatefulWidget splits immutable widget (cheaply rebuilt) from State object (persists across rebuilds, holds mutation). Keep the StatefulWidget as small as possible.
class Greeting extends StatelessWidget {
const Greeting({super.key, required this.name});
final String name;
@override
Widget build(BuildContext context) => Text('Hi $name');
}
class _CounterState extends State<Counter> {
int _count = 0;
@override
Widget build(BuildContext context) =>
TextButton(onPressed: () => setState(() => _count++), child: Text('$_count'));
}
build(BuildContext) must be pure and fast — no side effects, no heavy computation. It can be called many times per frame; assume it runs often.
147 more cards in this sheet
Unlock the Frontend & Mobile bundle — ₹399
One-time payment. Unlocks this sheet and 8 other sheets in the bundle, plus a typeset PDF of each.
Unlock the bundle See all bundles
Or get all 76 sheets for ₹999 — one payment, every future sheet included.
What's new and the interview questions people are actually getting asked. No spam.