LearnThatStack Ace your next interview
Mobile Development

Flutter.

Start free Change topic Change
Practice · Questions

All questions

Showing of 49
Beginner 13
01

What is Dart and why does Flutter use it?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Dart is a programming language developed by Google. Flutter uses Dart because:

  • Ahead-of-time (AOT) compilation for fast startup and execution
  • Just-in-time (JIT) compilation enabling hot reload during development
  • Garbage collection optimized for UI frameworks
  • Single-threaded model with async support, perfect for UI applications
  • Familiar syntax similar to Java/JavaScript, making it easy to learn
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

Explain the concept of "Everything is a Widget" in Flutter.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

In Flutter, widgets are the basic building blocks of the UI. Everything you see on the screen is a widget - text, buttons, layouts, even the app itself. This includes:

  • Structural elements (like Text, Button)
  • Layout elements (like Row, Column, Stack)
  • Styling elements (like Padding, Theme)

This unified approach simplifies development and makes the UI predictable and composable.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What are the main types of widgets in Flutter?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Flutter has two main types of widgets:

StatelessWidget: Immutable widgets that don't change once built

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Text('Hello World');
  }
}

StatefulWidget: Widgets that can change their appearance in response to events

class Counter extends StatefulWidget {
  @override
  _CounterState createState() => _CounterState();
}

class _CounterState extends State<Counter> {
  int count = 0;
  
  @override
  Widget build(BuildContext context) {
    return Text('Count: $count');
  }
}
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

Explain the difference between StatefulWidget and StatelessWidget with examples.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

StatelessWidget: Used when the UI doesn't need to change

class WelcomeMessage extends StatelessWidget {
  final String name;
  WelcomeMessage(this.name);
  
  @override
  Widget build(BuildContext context) {
    return Text('Welcome, $name!');
  }
}

StatefulWidget: Used when the UI needs to change based on user interaction or other events

class ToggleButton extends StatefulWidget {
  @override
  _ToggleButtonState createState() => _ToggleButtonState();
}

class _ToggleButtonState extends State<ToggleButton> {
  bool isPressed = false;
  
  @override
  Widget build(BuildContext context) {
    return ElevatedButton(
      onPressed: () => setState(() => isPressed = !isPressed),
      child: Text(isPressed ? 'ON' : 'OFF'),
    );
  }
}
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

Explain the difference between MainAxis and CrossAxis in Flutter layouts.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

In layout widgets:

  • MainAxis: Primary direction of the layout
  • CrossAxis: Perpendicular to the main axis

For Row: MainAxis is horizontal, CrossAxis is vertical
For Column: MainAxis is vertical, CrossAxis is horizontal

Column(
  mainAxisAlignment: MainAxisAlignment.center, // Vertical alignment
  crossAxisAlignment: CrossAxisAlignment.start, // Horizontal alignment
  children: [Text('Item 1'), Text('Item 2')],
)
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

What is the difference between Container and SizedBox?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Container: Multi-purpose widget for decoration, sizing, and positioning

Container(
  width: 100,
  height: 100,
  color: Colors.blue,
  padding: EdgeInsets.all(8),
  child: Text('Hello'),
)

SizedBox: Lightweight widget specifically for sizing and spacing

SizedBox(
  width: 100,
  height: 100,
  child: Text('Hello'),
)

Use SizedBox for simple sizing; Container when you need decoration or complex styling.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

07

What is setState() and how does it work?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

setState() is the most basic way to update the UI in a StatefulWidget. It tells Flutter that the widget's state has changed and the UI needs to be rebuilt.

void _incrementCounter() {
  setState(() {
    _counter++; // Modify state inside setState
  });
}

Important: Only call setState() in StatefulWidget, and only modify state variables inside the setState() callback.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

08

Explain the difference between Navigator.push() and Navigator.pushNamed().

Part of Pro
09

How do you pass data between screens in Flutter?

Part of Pro
10

What is the difference between SingleChildScrollView and ListView?

Part of Pro
11

What are Futures in Dart and how do you handle them?

Part of Pro
12

What is FutureBuilder and when should you use it?

Part of Pro
13

What is the difference between hot reload and hot restart?

Part of Pro
Intermediate 23
14

What is the widget tree and how does Flutter render widgets?

Part of Pro
15

What is the BuildContext and why is it important?

Part of Pro
16

What are Keys in Flutter and when should you use them?

Part of Pro
17

What are the limitations of setState() and when should you consider other state management solutions?

Part of Pro
18

Explain Provider pattern and how it works in Flutter.

Part of Pro
19

What is the difference between push, pushReplacement, and pushAndRemoveUntil?

Part of Pro
20

Explain the difference between Flexible and Expanded widgets.

Part of Pro
21

What is the difference between MediaQuery and LayoutBuilder?

Part of Pro
22

How do you create responsive layouts in Flutter?

Part of Pro
23

What is the difference between async/await and then()?

Part of Pro
24

What is a Stream and how do you use it in Flutter?

Part of Pro
25

What causes performance issues in Flutter apps?

Part of Pro
26

How do you optimize ListView performance?

Part of Pro
27

What is the const keyword and why is it important for performance?

Part of Pro
28

What is the difference between debug, profile, and release modes?

Part of Pro
29

How do you handle platform-specific code in Flutter?

Part of Pro
30

What are the different types of testing in Flutter?

Part of Pro
31

How do you mock dependencies in Flutter tests?

Part of Pro
32

How do you handle app lifecycle in Flutter?

Part of Pro
33

How do you implement pagination in Flutter?

Part of Pro
34

What are GlobalKeys and when should you use them?

Part of Pro
35

How do you handle different screen sizes and orientations?

Part of Pro
36

What are some best practices for Flutter development?

Part of Pro
Expert 13
37

What is BLoC pattern and how does it differ from Provider?

Part of Pro
38

What is Riverpod and how does it improve upon Provider?

Part of Pro
39

What is Navigator 2.0 and how does it differ from Navigator 1.0?

Part of Pro
40

How do you profile and debug performance issues?

Part of Pro
41

What are Platform Channels and how do you use them?

Part of Pro
42

What is Clean Architecture and how do you implement it in Flutter?

Part of Pro
43

What is MVVM pattern and how does it work with Flutter?

Part of Pro
44

What are Isolates and when should you use them?

Part of Pro
45

What is the difference between compute() and Isolate.spawn()?

Part of Pro
46

What are Slivers and how do you use them?

Part of Pro
47

How do you create custom animations in Flutter?

Part of Pro
48

What is a RenderObject and when would you create custom ones?

Part of Pro
49

How do you optimize Flutter app for release?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Flutter? Send them this set.
Pro · $10/mo

42 of 49 Flutter answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git