Flutter Roadmap
Flutter is a toolkit for building apps for phones, the web and desktop from one codebase written in Dart. Teams use it to ship to iOS and Android together, and it is common in startups and in agencies that build for several platforms. Interviews test Dart, the widget model, state management and how you test and release an app.
This roadmap starts with the Dart language, then covers tools, widgets, navigation, animation and platform code. It continues with state management, data and backend services, testing, automation and publishing to both stores. Each topic has a short explanation and one exercise.
By the end you will be able to build a complete app, structure it so it can be tested, ship it, and explain the choices you made. Practise in coding practice and track progress in progress page.
- Level
- Beginner to advanced
- Time
- 14-20 weeks at about 8 hours a week, less if you already know a typed object-oriented language
- Scope
- 62 topics in 8 stages
- Before you start
- Programming basics in any language: variables, loops, functions, classes; Comfort with the terminal and a code editor; Basic ideas about HTTP and JSON (see API Design Roadmap); Optional: Git and GitHub Roadmap for the projects, and Kotlin Roadmap or TypeScript Roadmap for a comparable typed language
What you will be able to do
- Write idiomatic Dart using null safety, futures, streams and sealed classes.
- Build multi-screen apps from widgets, with themes, responsive layouts and navigation.
- Explain how Flutter builds, lays out and paints a widget tree.
- Choose and apply a state management approach and justify the choice.
- Call REST APIs, store data locally and connect to a backend such as Firebase.
- Write unit, widget and integration tests and run them in automation.
- Release to the Play Store and App Store and measure usage with analytics.
The roadmap at a glance
- Stage 1Dart FoundationsBeginner · 2-3 weeks · 10 topics
- Stage 2Advanced DartIntermediate · 2 weeks · 6 topics
- Stage 3Tools and SetupBeginner · 1-2 weeks · 6 topics
- Stage 4Widgets and UIBeginner · 3 weeks · 10 topics
- Stage 5Navigation, Animation and PlatformsIntermediate · 2-3 weeks · 5 topics
- Stage 6State Management and ArchitectureIntermediate · 3 weeks · 8 topics
- Stage 7Data, Networking and BackendIntermediate · 3 weeks · 9 topics
- Stage 8Testing, Release and OperationsAdvanced · 2-3 weeks · 8 topics
Stage 1 Dart Foundations
Goal. Write and run Dart programs using its types, control flow, functions, collections and classes.
Dart Basics Core
Dart is the language behind Flutter. It is typed, has sound null safety, compiles ahead of time to native code for release builds, and supports fast hot reload during development through a just-in-time mode.
Every program starts at main:
void main() {
print('Hello, Flutter');
}DartPad is a browser editor that runs Dart and Flutter snippets with no installation, so it is the quickest place to try the ideas in this stage. Dart syntax will feel familiar if you know Java, Kotlin, TypeScript or C#. Statements end with a semicolon, and indentation is style, not syntax. Run dart format to keep code consistent.
Practice. Open DartPad and write a program that prints your name and the sum of the numbers one to ten.
Variables Core
Variables hold values. Use var to let the compiler infer the type, an explicit type when clarity helps, final for a variable assigned once, and const for a compile-time constant.
var name = 'Ada';
final created = DateTime.now(); // set once at runtime
const maxItems = 20; // known at compile time
String? nickname; // nullable
late final String token; // assigned later, onceWith null safety, a type such as String can never be null, while String? can. The compiler tracks this, so many null errors become compile errors. Use late sparingly, because a late variable read before assignment throws at runtime.
Practice. Declare one value of each kind (var, final, const, nullable, late) and explain when each is suitable.
Built-in Types Core
Built-in types are int, double, num, String, bool, List, Set, Map, Runes, Symbol and Null. There are also records, which group values without a class, and dynamic and Object as top types. Prefer specific types and avoid dynamic, which turns off checking.
Strings use single or double quotes, interpolate with $name or ${expr}, and support multi-line triple quotes. Integers are 64-bit on native platforms and behave as JavaScript numbers on the web, which matters for very large values.
var (min, max) = (1, 9); // record destructuring
var s = 'Total: ${min + max}';
Practice. Convert a string to an int with int.tryParse and handle invalid input without throwing.
Operators Core
Dart has the usual arithmetic, comparison and logical operators, plus a few that save code. ~/ is integer division, ?? gives a fallback for null, ??= assigns only if null, ?. is null-aware access and ... spreads a collection into another. The cascade .. calls several members on one object.
final label = user?.name ?? 'Guest';
final all = [...first, ...second];
final paint = Paint()..color = Colors.red..strokeWidth = 2;The is and as operators test and cast types, and == compares values for types that override it. Operators can be overloaded in your own classes, though you should do so only where it matches the meaning.
Practice. Use the null-aware operators to read a nested optional value safely in one expression.
Control Flow Statements Core
Control flow statements include if, else, for, for-in, while, do-while, switch, break and continue. Dart 3 added pattern matching, so switch can destructure values, test types and use guards, and switch expressions return values.
final text = switch (value) {
0 => 'zero',
int n when n < 0 => 'negative',
_ => 'positive',
};Collection if and for work inside list literals, which makes building widget children neat. assert checks conditions in debug mode only. With sealed classes, a switch must cover every subtype, so adding a case shows each place to update.
Practice. Write a switch expression on a sealed class with three subtypes.
Functions Core
Functions are objects, so they can be stored, passed and returned. Parameters can be positional, optional positional in square brackets, or named in braces. Named parameters can be required, which Flutter uses everywhere.
String greet(String name, {String greeting = 'Hello'}) => '$greeting, $name';Lambdas are short anonymous functions written with an arrow, such as (a, b) => a + b. They suit callbacks like onPressed and collection methods such as map and where. A function with one expression can use =>. Closures capture variables from their scope. Functions that return a Future use async.
Practice. Write a function with named required parameters and call it with a lambda as a callback.
Collections Core
Lists are ordered and growable, sets hold unique items, and maps hold key-value pairs. Literals use [] for lists and {} for sets and maps.
final nums = [3, 1, 2];
final ids = {1, 2, 3};
final ages = {'Ada': 36, 'Linus': 28};
final top = nums.where((n) => n > 1).map((n) => n * 2).toList();Learn map, where, fold, any, every, sort and expand, which replace many loops. Lists in Dart are references, so copy with List.of before changing. A list from const or List.unmodifiable rejects changes. Collection operations are lazy iterables until you call toList.
Practice. Group a list of products by category into a map of lists.
OOP Core
Dart is object oriented. Classes have fields, constructors and methods. Every class defines an implicit interface, and extends inherits, implements promises an interface, and with mixes in a mixin.
class Account {
final String id;
double _balance = 0;
Account(this.id);
double get balance => _balance;
}Privacy is per library: a leading underscore hides a name from other files. Constructors can be named, const or factory, and initialising formals like this.id save typing. Dart 3 added sealed, base, final and interface modifiers to control how classes are extended. Extension methods add behaviour to existing types.
Practice. Model a shape hierarchy with an abstract class, two subclasses and a mixin.
Futures and Async Await Core
A Future represents a value that arrives later. async functions return futures, and await waits for one without blocking the UI thread.
Future<String> load() async {
try {
final r = await http.get(Uri.parse(url));
return r.body;
} catch (e) {
return 'failed';
}
}Futures complete with a value or an error, handled by try and catch or .catchError. Future.wait runs several in parallel. Dart is single threaded per isolate, so async code interleaves on one event loop. An await inside a widget method needs a check of mounted before using the build context afterwards.
Practice. Fetch two URLs concurrently with Future.wait and print both lengths.
Streams Core
A stream delivers a sequence of values over time, such as user input, socket messages or database changes. Single-subscription streams allow one listener, and broadcast streams allow many.
Stream<int> counter() async* {
for (var i = 0; i < 5; i++) {
await Future.delayed(const Duration(seconds: 1));
yield i;
}
}
await for (final n in counter()) { print(n); }async* generators produce streams with yield. StreamController creates one manually, and you must close it. In Flutter, StreamBuilder rebuilds a widget for each event. Always cancel subscriptions in dispose to avoid leaks.
Practice. Write a stream that emits the time every second and consume it with a StreamBuilder later.
Stage 2 Advanced Dart
Goal. Use Dart idioms, concurrency and the core libraries confidently in production code.
Advanced Dart Recommended
Beyond the basics, several features appear in real code. Generics let types such as List<T> and Repository<T extends Model> stay type-safe. Extension methods and extension types add behaviour without subclassing. Records give lightweight tuples, patterns destructure data, and sealed class hierarchies model closed sets of states.
Mixins share behaviour across classes. Enhanced enums can hold fields and methods. Callable classes define call, typedef names function types, and Iterable generators with sync* produce lazy sequences.
Null safety has finer points: promotion of fields, the ! assertion operator, and required named parameters. Read the analyser messages carefully. They teach a lot.
Practice. Write a generic sealed result class with success and failure subtypes and use a switch to handle it.
Functional Programming Recommended
Dart is not purely functional, but functional style works well in it. Treat functions as values, prefer pure functions that depend only on their inputs, and compose collection operations instead of mutating in loops.
final total = orders
.where((o) => o.paid)
.map((o) => o.amount)
.fold<double>(0, (a, b) => a + b);Higher-order functions take or return functions. Immutable data and small functions are easy to test. The fpdart package adds types such as Option and Either if you want more. Do not push the style to the point where plain code is clearer, since team readability matters.
Practice. Rewrite a loop that builds a report using only where, map and fold.
Immutability Recommended
Immutable objects never change after creation. In Flutter this matters because widgets are immutable, and because change detection is simple when you replace an object instead of changing it in place.
Use final fields and const constructors. To update, create a copy with changed fields, usually through a copyWith method.
class Todo {
final String title;
final bool done;
const Todo(this.title, {this.done = false});
Todo copyWith({String? title, bool? done}) =>
Todo(title ?? this.title, done: done ?? this.done);
}Code generators such as freezed create copyWith, equality and unions for you. Use const widgets so Flutter can skip rebuilding them.
Practice. Convert a mutable model to an immutable one with copyWith and use it in a list update.
Isolates Core
Isolates are Dart's units of concurrency. Each has its own memory heap and event loop and communicates by sending messages, so there is no shared memory and no locks. The UI runs on the main isolate, and heavy work such as parsing a large file blocks it and drops frames.
Run it elsewhere with Isolate.run, or with compute in Flutter:
final data = await Isolate.run(() => parseHuge(text));Memory allocation is per isolate, and data sent between isolates is copied or transferred. Asynchronous code is not parallel. Use isolates for CPU-bound work and futures for waiting on I/O. On the web, workers play a similar role.
Practice. Parse a large JSON string in an isolate and compare dropped frames against parsing on the main isolate.
Core Libraries Recommended
Dart ships core libraries you will use constantly. dart:core has the basic types and collections, dart:async has futures and streams, dart:math provides random numbers and maths, dart:convert handles JSON and UTF-8, dart:io covers files, sockets and processes on native platforms, and dart:typed_data works with bytes.
dart:io is not available when compiling for the web, so abstract platform-specific code behind an interface. For the date and time you have DateTime and Duration, and the intl package adds formatting and localisation.
Learn the standard library before adding packages, since many small helpers already exist there.
Practice. Read a JSON file with dart:io and dart:convert and print one field from each entry.
Reactive Programming Recommended
Reactive programming means describing how values change over time and reacting to them. Streams are Dart's built-in tool for it, and Flutter's widgets are themselves a reaction to state changes.
You compose streams by mapping, filtering, combining, debouncing and merging. A search box that waits until typing stops and ignores outdated responses is a typical case. Libraries such as RxDart add operators like debounceTime and combineLatest, covered later.
Think about backpressure, error handling and cancellation for every stream. The reactive style gives clear data flow for events, but overusing it for simple state creates needless complexity.
Practice. Build a stream pipeline that debounces keystrokes and calls a fake search only after a short pause.
Stage 3 Tools and Setup
Goal. Install the toolchain, manage packages and versions, and use the debugging tools.
Development Environment Core
Development environment setup means installing the Flutter SDK, which bundles Dart, then the toolchain for each target: Android Studio and its SDK for Android, Xcode for iOS and macOS, and a browser for web. Run flutter doctor to see what is missing.
For editing, VS Code with the Flutter and Dart extensions is popular and light. Android Studio and IntelliJ IDEA have Flutter plugins with a widget outline, refactoring and integrated emulators. Pick one and learn its hot reload, debugger and refactor shortcuts well.
You need a Mac to build for iOS, but Android, web, Windows and Linux builds work on other systems. Use a physical device to test performance and platform behaviour.
Practice. Run flutter doctor, fix every issue it reports for your targets and launch the sample app on an emulator.
Flutter CLI Core
The Flutter CLI drives everything from the terminal. The commands you will use most:
flutter createmakes a project.flutter runbuilds and launches, with hot reload onrand hot restart onR.flutter build apk,appbundle,iosandwebproduce release builds.flutter testruns tests, andflutter analyzeruns static analysis.flutter cleanclears build output, andflutter upgradeorflutter channelmanages the SDK.flutter deviceslists targets.
Release builds use ahead-of-time compilation and are far faster than debug builds, so never judge performance in debug mode. Use --profile mode for profiling.
Practice. Create a project, run it on two targets, then produce a release build and compare its size with a debug build.
Package Manager Core
The package manager is called pub, and packages are published on pub.dev. You declare dependencies in pubspec.yaml, and the lock file records exact versions.
The flutter pub / dart pub commands: flutter pub add http adds a dependency, flutter pub get fetches them, flutter pub upgrade updates within allowed ranges, and flutter pub outdated shows newer versions. dart pub is used in pure Dart projects.
When choosing a package on pub.dev, check the likes, pub points, popularity, maintenance dates, platform support and the licence. Prefer packages with null safety, tests and an active repository. Every dependency is a long-term commitment, so keep the list small.
Practice. Add a package, read its score page, and write down three signals that made you trust it.
FVM (Flutter Version Manager) Optional
FVM, short for Flutter Version Manager, lets you install several Flutter SDK versions and choose one per project. It records the version in a project config file, so every developer and the CI machine use the same one.
fvm install 3.x.x
fvm use 3.x.x
fvm flutter runThis avoids builds that fail because a teammate upgraded the global SDK. It also helps when you maintain older apps next to new ones. Point your editor's SDK path at the FVM link. If you only have one project, the plain SDK is enough, but teams benefit from pinning versions.
Practice. Pin a project to a specific Flutter version and confirm the version in a second terminal.
Dev Tools Core
Flutter's Dev Tools run in the browser or an editor and offer several views. The Flutter Inspector shows the widget tree, lets you select a widget on the device and see its properties and layout constraints. The Flutter Outline panel in the editor shows the structure of the current file's build method and offers refactors such as wrapping a widget or extracting one.
Other tools: the Performance view finds jank, the CPU profiler samples code, the Memory view finds leaks, the Network view lists requests, and the Logging view shows output.
Use debugPaintSizeEnabled and the layout explorer to understand overflow errors. Learn to read the red overflow stripes and the constraint messages.
Practice. Use the Inspector to find why a Row overflows, then fix it and confirm in the layout explorer.
Version Control Systems Core
Version control systems record the history of your code and let several people work together. Git is the standard. Learn init, add, commit, branch, merge, rebase, stash and how to resolve conflicts. See Git and GitHub Roadmap for a full guide.
Repo hosting services such as GitHub, GitLab and Bitbucket host remote repositories, pull requests and code review, and trigger automation. GitHub is the most common and ties into GitHub Actions for builds.
For Flutter, commit pubspec.yaml and pubspec.lock for apps, ignore build output and generated files per the default .gitignore, and never commit signing keys, keystores or API secrets. Use small commits and branches per feature.
Practice. Create a repository, push a Flutter app, open a pull request from a branch and merge it.
Stage 4 Widgets and UI
Goal. Compose screens from widgets and understand how Flutter builds, lays out and paints them.
Widgets Core
In Flutter nearly everything is a widget: text, buttons, padding, alignment and the app itself. A widget is an immutable description of part of the interface, and you build screens by nesting widgets. The nested structure forms the widget tree, and Flutter keeps a parallel element tree that holds the live instances and a render tree that does layout and painting.
Center(
child: Column(children: [
Text('Hello'),
ElevatedButton(onPressed: () {}, child: Text('Go')),
]),
)Prefer composing small widgets over building one huge build method. Widgets are cheap to create, and Flutter decides what to repaint. Layout widgets such as Row, Column, Stack, Expanded and Padding control position, and layout flows down as constraints and up as sizes.
Practice. Build a profile card using Column, Row, Padding and Text, then split it into three smaller widgets.
Stateless Widgets Core
Stateless widgets have no state that changes over time. Their output depends only on constructor arguments, so they are simple, easy to test and cheap to rebuild.
class Price extends StatelessWidget {
const Price({super.key, required this.amount});
final double amount;
@override
Widget build(BuildContext context) =>
Text('\$${amount.toStringAsFixed(2)}');
}Make the constructor const when possible. A const widget instance is created once and Flutter can skip rebuilding it. Use stateless widgets for anything that only displays data, and keep them free of work. Most of an app's widgets should be stateless, with state held in a few places.
Practice. Create a stateless widget with a const constructor and use it in a list of ten items.
Stateful widgets Core
Stateful widgets own mutable state in a separate State object that survives rebuilds. You change it by calling setState, which schedules a rebuild.
class Counter extends StatefulWidget {
const Counter({super.key});
@override
State<Counter> createState() => _CounterState();
}
class _CounterState extends State<Counter> {
int _n = 0;
@override
Widget build(BuildContext context) =>
TextButton(onPressed: () => setState(() => _n++), child: Text('$_n'));
}The lifecycle: initState runs once, didUpdateWidget when the parent changes it, dispose for cleanup. Cancel controllers and subscriptions in dispose. Keep state local to where it is used and lift it up only when another widget needs it.
Practice. Add a text field with a TextEditingController and dispose of it correctly.
Inherited Widgets Recommended
An inherited widget makes data available to any descendant without passing it through every constructor. Descendants call dependOnInheritedWidgetOfExactType, usually wrapped in a static of(context) method, and are rebuilt when the data changes.
Theme.of(context), MediaQuery.of(context) and Navigator.of(context) are all inherited widgets. State management packages such as Provider and Riverpod are built on the same idea.
You rarely write one yourself today, but you should understand the mechanism: it is how context lookups work and why a widget must be below the provider in the tree. A common error is reading something from a context that sits above the widget that provides it.
Practice. Write a small inherited widget that exposes a counter and read it from two descendants.
Material Widgets Core
Material widgets implement Google's Material Design and are the default in Flutter. MaterialApp sets up theme, routes and localisation, Scaffold provides an app bar, body, drawer and floating action button, and the library includes buttons, text fields, cards, dialogs, chips, navigation bars and lists.
Material 3 is the current default design. Define a theme once from a seed colour with ColorScheme.fromSeed, and use Theme.of(context) instead of hard-coded values.
MaterialApp(
theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.teal)),
home: const Home(),
)Support dark mode with a darkTheme, and respect text scaling for accessibility.
Practice. Build a themed screen with a Scaffold, a card list and a floating action button, with light and dark themes.
Cupertino Widgets Recommended
Cupertino widgets imitate iOS design: CupertinoApp, CupertinoPageScaffold, CupertinoButton, CupertinoSwitch, CupertinoTabBar, date pickers and action sheets.
You can mix them with Material widgets in one app. Many teams use Material everywhere and adapt only a few elements, using .adaptive constructors such as Switch.adaptive that choose the look per platform. Others build a fully branded interface that ignores platform style.
Decide on purpose. A consistent custom design is acceptable, but native behaviours such as the iOS swipe-back gesture and scroll physics matter to users. Flutter applies platform scroll physics and page transitions automatically in Material apps.
Practice. Show an adaptive switch and a platform-specific dialog and compare them on Android and iOS emulators.
Responsive Widgets Core
Phones, tablets, foldables, desktops and browsers have different sizes. Responsive layout means the interface adapts instead of being scaled.
Tools: MediaQuery for screen size and text scale, LayoutBuilder for the space the parent gives a widget, Flexible and Expanded inside rows and columns, Wrap for flowing items, AspectRatio, FractionallySizedBox, and OrientationBuilder.
LayoutBuilder(builder: (context, c) =>
c.maxWidth > 600 ? const WideLayout() : const NarrowLayout())Choose breakpoints by available width, not device type. Use SafeArea to avoid notches, and test with large text. Adaptive design also changes navigation: bottom bar on phones, rail or sidebar on wide screens.
Practice. Make a gallery that shows two columns on phones and four on wide windows, using LayoutBuilder.
Styled Widgets Recommended
Styling comes from themes and from widgets that decorate. Container combines padding, margin, size, colour and BoxDecoration for borders, gradients, shadows and rounded corners. DecoratedBox, ClipRRect, Card and Material are lighter alternatives. TextStyle controls fonts, size, weight and spacing.
Opacity is available as a widget, Opacity, but it forces an offscreen layer, so prefer AnimatedOpacity for animation or drawing a colour with alpha. Newer Flutter versions favour Color.withValues(alpha: ...) over the older withOpacity.
Centralise styles in ThemeData and ThemeExtension so a redesign touches one place. Avoid copy-pasted decoration.
Practice. Create a reusable card decoration through ThemeData and apply it in three screens.
Images, Fonts and Assets Core
Working with assets means declaring files in pubspec.yaml and loading them at run time.
flutter:
assets:
- assets/images/
fonts:
- family: Inter
fonts:
- asset: assets/fonts/Inter-Regular.ttfImages come from the asset bundle with Image.asset, from the network with Image.network, from files or memory. Provide 2x and 3x variants in resolution folders, and set cacheWidth for large images. Fonts are declared by family and referenced in a TextStyle, or loaded through a package.
Other file types in Flutter, such as JSON, text, SVG with a package, Lottie animations and audio, load the same way with rootBundle.loadString. Always provide a placeholder and error builder for network images.
Practice. Add a custom font and two image assets, and load a JSON file from assets into a list.
Flutter Internals Optional
Under the hood Flutter has three trees: widgets are immutable configuration, elements are the live instances that decide when to update, and render objects do layout, painting and hit testing. A RenderObject takes constraints from its parent, chooses a size and positions its children.
When build runs, Flutter compares the new widget with the old by type and key; if they match, the element is reused and the render object updated. That is why keys matter in lists that reorder.
Flutter draws with its own engine, using the Impeller renderer on supported platforms, rather than native widgets. Memory allocation of widgets is cheap because they are short-lived. This knowledge helps you answer deep interview questions about performance.
Practice. Add keys to a reorderable list of stateful items and observe what happens to their state without keys.
Stage 5 Navigation, Animation and Platforms
Goal. Move between screens, animate the interface and call native code when needed.
Animations Core
Flutter offers two kinds of animation. Implicit animations are widgets that animate by themselves when a value changes, such as AnimatedContainer, AnimatedOpacity and TweenAnimationBuilder. Explicit animations give you control through an Animation Controller, a Ticker that produces values from zero to one over a duration.
late final controller = AnimationController(
vsync: this, duration: const Duration(milliseconds: 400));
late final curve = CurvedAnimation(parent: controller, curve: Curves.easeOut);CurvedAnimations apply easing curves, and a Tween maps the zero to one value to colours, sizes or positions. The state class needs SingleTickerProviderStateMixin, and you must dispose of the controller. Start with implicit animations and move to explicit ones for control.
Practice. Animate a box with AnimatedContainer, then rebuild it with an AnimationController and a curve.
AnimatedBuilder and AnimatedWidget Recommended
When an animation changes, you do not want to rebuild the whole screen. AnimatedWidget is a base class: you subclass it, give it an animation, and it rebuilds only itself on each tick. AnimatedBuilder does the same without a subclass, taking a builder function and a child that is built once and reused.
AnimatedBuilder(
animation: controller,
child: const FlutterLogo(size: 80),
builder: (context, child) =>
Transform.rotate(angle: controller.value * 6.28, child: child),
)Passing the static subtree as child avoids rebuilding it each frame, which is the main performance idea. Use these over calling setState in a listener.
Practice. Rotate a logo with AnimatedBuilder and confirm with the performance overlay that only the rotating part rebuilds.
Hero Animations Recommended
A hero animation flies a widget from one screen to another during navigation, such as a thumbnail growing into a full image. Wrap the widget in a Hero with the same tag on both routes, and Flutter animates between their positions and sizes.
Hero(tag: 'photo-$id', child: Image.network(url))Tags must be unique per screen and equal on source and destination. Heroes work with Navigator pushes and with go_router when using material page transitions. You can customise the flight with flightShuttleBuilder and a creation rectangle tween.
Use heroes to show relationships between screens, not as decoration. Keep durations short.
Practice. Add a hero transition between a grid thumbnail and a detail image.
Platform Channels Recommended
Sometimes you need a native API that Flutter does not expose, such as a sensor, a payment SDK or a system setting. Platform channels send asynchronous messages between Dart and the host code in Kotlin, Java, Swift or Objective-C.
const channel = MethodChannel('app/battery');
final level = await channel.invokeMethod<int>('getLevel');The native side registers a handler for the same channel name and returns a result. EventChannel streams events. The Pigeon tool generates typed code for both sides, and Dart FFI calls C libraries directly. Before writing one, search pub.dev, because a plugin may already exist. Handle missing platforms and errors in Dart, and keep channel code small.
Practice. Write a method channel that returns the device model name on Android and iOS.
Stage 6 State Management and Architecture
Goal. Choose and apply a state management approach and structure an app with sound design principles.
State Management Core
State management is how an app stores data that changes and tells the interface to update. Ephemeral state belongs to one widget, such as a selected tab, and setState is fine. App state is shared across screens, such as the signed-in user or a cart, and needs a structured approach.
Whichever tool you pick, aim for the same properties: one source of truth, data flowing down, events flowing up, and logic kept out of widgets so it can be tested. Separate loading, data and error states explicitly.
The options differ in ceremony and testability, not in what they can do. Pick one, learn it deeply, and know the trade-offs of the others. Interviewers ask you to compare them and to justify a choice for a given app.
Practice. Draw which state in a shopping app is ephemeral and which is app state, and where each lives.
Change Notifier and Value Notifier Core
ChangeNotifier is a built-in class that keeps a list of listeners and calls notifyListeners when something changes. A model extends it, and widgets listen through ListenableBuilder or a package built on it.
class Cart extends ChangeNotifier {
final _items = <Item>[];
List<Item> get items => List.unmodifiable(_items);
void add(Item i) { _items.add(i); notifyListeners(); }
}ValueNotifier<T> is a smaller version holding one value and notifying when it is set, paired with ValueListenableBuilder. These need no package and are ideal for simple cases. Dispose of notifiers you create, and avoid exposing mutable lists.
Practice. Create a counter with ValueNotifier and a cart with ChangeNotifier, each shown through a listenable builder.
Provider Core
Provider is a popular package that wraps inherited widgets to supply objects to the tree and rebuild dependants. You place a provider above where it is needed and read it below.
ChangeNotifierProvider(
create: (_) => Cart(),
child: const App(),
)
// read: context.watch<Cart>().items or context.read<Cart>().add(i)watch rebuilds when the object changes, read does not and is for callbacks, and select rebuilds only when a chosen part changes. Provider is simple and widely used in existing code, though Riverpod is from the same author and fixes several of its limitations, such as dependence on the widget tree and runtime lookup errors.
Practice. Provide a Cart above the app and show its count in an app bar badge using select.
Riverpod Recommended
Riverpod is a state management and dependency injection library that does not depend on the widget tree. You declare providers as global, immutable definitions and read them through a ref.
final counterProvider = NotifierProvider<Counter, int>(Counter.new);
class Counter extends Notifier<int> {
@override int build() => 0;
void inc() => state++;
}
// in a ConsumerWidget: ref.watch(counterProvider)Providers can depend on each other, cache results, handle async values through AsyncValue with loading, data and error cases, and be overridden in tests. Code generation with annotations reduces boilerplate. Learn watch, read, listen, family providers and auto-dispose.
Practice. Build a todo list with an async provider that loads items, and override it with fake data in a test.
BloC Recommended
BloC stands for business logic component. A bloc receives events and emits states, usually through the flutter_bloc package. A Cubit is the simpler form: methods call emit with a new state, without events.
class CounterCubit extends Cubit<int> {
CounterCubit() : super(0);
void increment() => emit(state + 1);
}
// BlocBuilder<CounterCubit, int>(builder: (context, n) => Text('$n'))BloC enforces a strict, testable flow: UI sends events, logic produces immutable states, and the UI reacts. It suits large teams and apps that value traceability, at the cost of more files. bloc_test makes testing straightforward. Model states as sealed classes for loading, success and failure.
Practice. Write a login Cubit with states for idle, loading, success and failure and test it with bloc_test.
ReduX, GetX and RxDart Optional
Other approaches exist. ReduX, from the Redux pattern, keeps all state in one store changed by pure reducer functions responding to actions. It brings predictable updates and time-travel debugging, but heavy boilerplate, so it is less common in new Flutter apps.
GetX is an all-in-one package for state, routing and dependency injection with very little code. It is easy to start with, but its global approach and mixing of concerns make large codebases harder to maintain, and many teams avoid it.
RxDart extends streams with operators such as BehaviorSubject, debounceTime and combineLatest, and underlies reactive designs. Know what each is and why a team might or might not choose it.
Practice. Implement the same counter in three styles and note which needed the most code.
Dependency Injection Core
Dependency injection means a class receives its collaborators instead of creating them. A repository takes an API client in its constructor, so tests can pass a fake.
class UserRepository {
UserRepository(this._api);
final ApiClient _api;
}In Flutter you can inject by constructor, through Provider or Riverpod, or with a service locator such as get_it. Constructor injection is the clearest, and a locator is handy for wiring at start-up. Register interfaces, not concrete classes, and keep construction in one composition root near main.
Avoid globals and singletons that hide dependencies. DI makes code testable and swappable, and it is a common interview topic.
Practice. Inject a fake repository into a view model and write a test that runs without the network.
Design Principles and SOLID Recommended
Design principles keep code easy to change. SOLID Principles are five: single responsibility (a class has one reason to change), open-closed (extend without editing), Liskov substitution (subtypes must work wherever the parent does), interface segregation (small interfaces) and dependency inversion (depend on abstractions).
Other guides: keep it simple, avoid repetition, favour composition over inheritance, and separate UI from logic. In Flutter, composition is natural, because widgets are built by nesting.
Design patterns that appear often include repository, singleton, factory, observer and builder. Layered architecture, with presentation, domain and data layers, applies them at app scale. Use patterns to solve a real problem, not to decorate code, and be ready to give an example for each SOLID letter.
Practice. Review a widget that fetches, parses and displays data, and split it by responsibility.
Stage 7 Data, Networking and Backend
Goal. Call APIs, parse data, store it locally and connect an app to a backend.
Working with APIs in Flutter Core
Most apps talk to a server. Use the http package, or dio for interceptors, retries and cancellation. A REST API exposes resources over HTTP through verbs like GET for reading and POST for creating, and returns JSON.
final res = await http.get(Uri.parse('$base/items'));
if (res.statusCode != 200) throw ApiException(res.statusCode);
final items = jsonDecode(res.body) as List;Wrap calls in a repository, set timeouts, map errors to meaningful types, and show loading, empty and error states. Never put secrets in the app, since they can be extracted. Add authentication headers in one place. See API Design Roadmap for how APIs are designed.
Practice. Fetch a list from a public REST API, show it in a list with loading and error states and add pull to refresh.
JSON Serialization and Deserialization Core
JSON serialization turns objects into text, and deserialization turns text into objects. For small models, write fromJson and toJson by hand.
class User {
User({required this.id, required this.name});
final int id; final String name;
factory User.fromJson(Map<String, dynamic> j) =>
User(id: j['id'] as int, name: j['name'] as String);
}Hand-written code is clear and has no dependencies, but tedious for big models. The json_serializable package generates it from annotations through build_runner, and freezed adds immutability and unions. Dart 3 patterns allow neat checks. Validate types, handle missing keys and nullable fields, and never trust server data.
Practice. Model a nested JSON response with two classes and write a test for a missing field.
GraphQL Optional
GraphQL lets the client request exactly the fields it needs from one endpoint. In Flutter, the graphql_flutter package provides a client, a cache and widgets for queries, mutations and subscriptions, and ferry offers generated, typed operations.
Query(
options: QueryOptions(document: gql(r'{ me { name } }')),
builder: (result, {refetch, fetchMore}) => Text(result.data?['me']['name'] ?? ''),
)It suits apps with many related screens and an existing GraphQL backend. Handle partial errors, cache policy and pagination. For simpler backends REST is easier. See GraphQL Roadmap for the full language.
Practice. Query a public GraphQL API for a list of items and display two fields.
Web Sockets Recommended
Web sockets keep a two-way connection open, so a server can push messages at any time. Use them for chat, live scores and collaborative features. The web_socket_channel package gives you a Stream of incoming messages and a Sink for sending.
final channel = WebSocketChannel.connect(Uri.parse('wss://example.org/live'));
StreamBuilder(stream: channel.stream, builder: (c, s) => Text('${s.data}'));
channel.sink.add('hello');Plan for dropped connections: reconnect with back-off, resend a subscription, and handle the app moving to the background, when the operating system may close sockets. Close the channel in dispose. For one-way updates, server-sent events or push notifications may be simpler.
Practice. Build an echo chat screen against a test socket server that reconnects after a drop.
Storage in Flutter Core
Storage in Flutter depends on the data. Shared Preferences stores small key-value settings such as theme or onboarding flags. SQLite holds structured, queryable data through sqflite or the drift package, which adds typed queries and migrations. Files, through path_provider and dart:io, store documents and caches. Secrets such as tokens belong in secure storage, which uses the Keychain or Keystore.
final prefs = await SharedPreferences.getInstance();
await prefs.setBool('seenIntro', true);Other storage choices include Hive and Isar for fast local objects. Plan schema migrations from the start, and treat the local database as a cache of server data when you support offline use.
Practice. Store a todo list in SQLite, keep a theme choice in shared preferences and a token in secure storage.
Authentication Core
Authentication proves who the user is. Common approaches: email and password, social sign-in with Google or Apple, and one-time codes. Most apps delegate to a provider such as Firebase Authentication, an identity service or their own backend using OAuth 2.0 and OpenID Connect.
Good practice: keep tokens in secure storage, refresh access tokens before expiry, attach them in one interceptor, clear everything on sign-out and handle 401 responses by signing in again. Use route guards to keep signed-out users away from protected screens.
Apple requires offering its sign-in option in some cases when you offer other social logins. Never roll your own cryptography or store passwords in the app.
Practice. Add email sign-in with a provider, protect two routes and handle token expiry by redirecting to sign-in.
Firebase Recommended
Firebase is Google's backend platform and is closely integrated with Flutter through the FlutterFire plugins. Set it up with the flutterfire configure command, which creates platform config files and initialises the app in main.
Services you will meet: authentication, Firestore and storage, cloud messaging, analytics, crash reporting, remote config and hosting. They save building a backend, at the price of vendor lock-in and cost that grows with usage.
Security rules protect your data, so write and test them before launch. Use the emulator suite for local development. Choose Firebase for prototypes and apps without custom server needs, and weigh a custom backend for complex business logic.
Practice. Create a Firebase project, connect a Flutter app and sign in an anonymous user.
Firestore and Cloud Functions Recommended
Firestore is a document database: data lives in documents inside collections, and documents can hold sub-collections. It supports real-time listeners, offline caching and simple queries, and works naturally with streams and StreamBuilder.
final snap = FirebaseFirestore.instance
.collection('notes').where('owner', isEqualTo: uid).snapshots();Model data for the queries you need, since there are no joins; duplicate some data on purpose. Add indexes for compound queries and security rules for access. Firebase Cloud Functions run server-side code in response to events or HTTP calls, for tasks such as sending emails, validating data, calling third-party APIs with secrets or fan-out writes. Call them with the cloud_functions package.
Practice. Build a notes list backed by Firestore with live updates and a Cloud Function that stamps a creation time.
Push Notifications Recommended
Push notifications reach users when the app is closed. Firebase Cloud Messaging is the usual route in Flutter, using the firebase_messaging package. On iOS it relies on Apple's push service and needs a key and capability set up. On Android 13 and later the app must request the notification permission.
Handle three states: foreground, background and terminated, and decide what tapping a notification opens. Send a token to your backend, refresh it when it changes, and target by topic or token. Use the flutter_local_notifications package to show alerts while the app is open.
Ask for permission at a good moment, explain why, and let users control categories. Test on real devices.
Practice. Send a test message to a device and open a specific screen when the notification is tapped.
Stage 8 Testing, Release and Operations
Goal. Test an app at every level, automate builds and publish to both stores.
Testing Core
Flutter supports three levels of testing, and a healthy project has all of them in a pyramid shape: many unit tests, fewer widget tests and a handful of integration tests.
TDD, test-driven development, means writing a failing test, making it pass, then refactoring. BDD, behaviour-driven development, expresses tests as scenarios in plain language, such as given, when and then, and tools such as the bdd_widget_test package support it. Both are habits that encourage small, testable units.
Run tests with flutter test, measure with --coverage, and run them on every pull request. Use fakes and mocks from mocktail for dependencies.
Practice. Write a failing test for a discount calculator first, then implement it until it passes.
Unit Testing Core
Unit testing checks pure Dart logic in isolation: models, repositories, view models and utilities. Use the test package.
test('adds item to cart', () {
final cart = Cart();
cart.add(Item('pen', 2));
expect(cart.total, 2);
});Group related tests, use setUp for shared arrangement, and test edge cases and errors. Fake out the network and storage, so tests are fast and deterministic. For streams, use emitsInOrder matchers and for async code, await inside the test body. A function that needs a fake clock or random source should take it as a parameter.
Practice. Write unit tests for a repository with a fake API covering success, an error and an empty result.
Widget Testing Core
Widget testing builds a widget in a test environment without a device, so you can check what is on screen and simulate taps.
testWidgets('increments', (tester) async {
await tester.pumpWidget(const MaterialApp(home: Counter()));
await tester.tap(find.byType(TextButton));
await tester.pump();
expect(find.text('1'), findsOneWidget);
});pump advances one frame and pumpAndSettle waits for animations to finish. Use find.text, find.byKey and find.byType. Wrap the widget with the providers and themes it needs. Golden tests compare rendered output with saved images to catch visual regressions.
Practice. Test a login form: enter text, tap submit, and check that an error message and then a success state appear.
Integration Testing Recommended
Integration testing runs the whole app on a device or emulator and drives it like a user. Use the integration_test package that comes with the SDK, and run with flutter test integration_test.
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
testWidgets('sign in flow', (tester) async {
app.main();
await tester.pumpAndSettle();
await tester.enterText(find.byKey(const Key('email')), 'a@b.co');
});These tests are slower and can be flaky, so cover only critical journeys such as sign-up, checkout and settings. Use stable keys, avoid real network calls by using a test backend and run them on cloud device farms or CI. Firebase Test Lab is one option.
Practice. Automate a sign-in and add-to-cart journey and run it in CI on an emulator.
CI/CD Core
CI/CD automates checking and shipping. Continuous integration runs analysis and tests on each push. Continuous delivery builds signed releases and sends them to testers or stores.
Tools: GitHub Actions runs workflows from YAML in the repository and has Flutter setup actions. Codemagic is a CI service built for Flutter, with macOS builds, code signing and store publishing. Bitrise is a mobile-focused CI with a visual workflow editor. Fastlane scripts store tasks such as screenshots, signing, beta uploads and releases.
A good pipeline runs flutter analyze, flutter test, builds an app bundle and an iOS archive, and distributes it. Store signing keys as encrypted secrets, and pin the Flutter version, ideally through FVM.
Practice. Create a GitHub Actions workflow that analyses, tests and builds your app on every pull request.
Deployment Core
Deployment gets the app into users' hands. Deployment guidelines and protocols start with preparation: set the app name, icons and splash screen, bump the version in pubspec.yaml, switch to release configuration, and obfuscate and split debug symbols if you wish with --obfuscate.
Playstore: build an app bundle with flutter build appbundle, sign it with an upload key, create a listing, complete the content and data safety forms, test on internal and closed tracks, then roll out in stages. AppStore: build an iOS archive, sign with certificates and provisioning in Xcode, upload to App Store Connect, test with TestFlight, then submit for review against Apple's guidelines.
Keep keys safe and plan for review delays.
Practice. Prepare a release checklist and upload a build to an internal testing track or TestFlight.
Firebase App Distribution and Remote Config Optional
Firebase App Distribution sends pre-release builds to testers by email, without waiting for store review. It integrates with Fastlane and CI, so every merge can ship a build to a tester group, with release notes.
Remote Config stores key-value parameters in the cloud that the app fetches at start-up. Use it for feature flags, gradual rollouts, A/B tests and changing text or limits without a release.
final rc = FirebaseRemoteConfig.instance;
await rc.fetchAndActivate();
final showBanner = rc.getBool('show_banner');Always set safe in-app defaults, since the fetch can fail, and cache values with a sensible interval.
Practice. Distribute a build to two testers and gate a small feature behind a remote flag.
Analytics Recommended
Analytics shows how people use the app, so you can find where they drop off. Firebase Analytics, built on Google Analytics, records events and user properties, and feeds funnels and audiences. Mixpanel focuses on product analytics with funnels, retention and cohorts. Segment is a pipeline: you send events once and forward them to many tools.
Plan an event schema first: consistent names, a small set of properties, and a tracking plan document. Log key moments such as sign-up, purchase and feature use, not every tap.
Respect privacy: ask consent where the law requires, avoid personal data in events, and honour tracking choices on iOS. Wrap analytics behind an interface so you can switch tools and disable it in tests.
Practice. Define five events for a sign-up funnel and log them through an interface with a fake used in tests.
Projects to build
Build these in order. Each one should end up in a public repository with a short README that explains your decisions.
- Tip and unit converterBeginner
Build a two-screen app with a tip calculator and a unit converter. Use stateless and stateful widgets, form inputs, a theme with light and dark modes, and validation for empty or invalid values.
Widgets · setState · Forms · Theming
- Todo app with local storageIntermediate
Add, complete and delete tasks, filter by status and keep the list after a restart. Store tasks in SQLite, and manage state with Provider or Riverpod. Add widget tests for adding and completing a task.
State management · SQLite · Lists · Widget testing
- Recipe or movie browserIntermediate
Fetch data from a public REST API, parse the JSON into typed models, show a grid with images, and add a detail screen with a hero animation. Handle loading, error and offline states, and cache the last result.
REST · JSON serialization · Navigation · Hero animations
- Chat app with FirebaseAdvanced
Build sign-in, chat rooms and real-time messages with Firestore, push notifications for new messages and security rules that limit access. Use BloC or Riverpod and write unit tests for the logic.
Authentication · Firestore · Push notifications · BloC
- Release-ready app with CIAdvanced
Take one of your apps through a full release: integration tests, a GitHub Actions or Codemagic pipeline, flavours for staging and production, analytics events, an internal test track and TestFlight build.
CI/CD · Integration testing · Deployment · Analytics
Interview questions
Try to answer each question out loud before you open the answer.
What is the difference between StatelessWidget and StatefulWidget?Junior
A stateless widget has no mutable state: its output depends only on its constructor arguments. A stateful widget has a separate State object that lives across rebuilds and changes through setState. Both widgets are immutable descriptions that Flutter may recreate often. Use stateless for pure display and keep state in as few places as possible.
How does Flutter render the user interface?Mid
Flutter does not use native widgets. It draws every pixel itself through its engine, with the Impeller or Skia renderer. Widgets describe the interface, elements hold the live instances, and render objects handle layout, painting and hit testing. Constraints go down the tree, sizes go up, and the parent sets the position. This gives the same look on every platform.
Explain the widget, element and render trees.Senior
Widgets are immutable configuration objects created on each build. Elements are the long-lived instances that link a widget to its place in the tree and decide whether to reuse or replace it by comparing type and key. Render objects do the actual layout and painting. This split makes rebuilding widgets cheap, because only the changed render objects are updated.
What does setState do?Junior
It runs the function you pass, marks the State object as dirty and schedules a rebuild of its build method on the next frame. It does not make the change itself; you must update the fields inside it. Calling it after dispose throws, so check mounted in async code. For shared state use a state management solution instead.
How do futures differ from streams?Junior
A future produces one value or error at some point. A stream produces zero or more values over time and completes when closed. Use a future for a single request and a stream for continuing events like socket messages or database changes. Flutter has FutureBuilder and StreamBuilder to render each, and subscriptions must be cancelled.
What are isolates and when do you need one?Mid
An isolate is an independent worker with its own memory and event loop, communicating by messages. The UI runs on the main isolate, so long CPU work such as parsing a huge file causes dropped frames. Run it with Isolate.run or compute. Isolates do not help for waiting on network I/O, where async and await are enough.
Compare Provider, Riverpod and BloC.Mid
Provider supplies objects through the widget tree and is simple. Riverpod keeps providers outside the tree, is compile-safe, handles async values and is easy to override in tests. BloC uses events and states with a strict flow that scales well in teams but needs more code. All three work. I choose by team size, testing needs and familiarity.
What are keys in Flutter and when do you need them?Mid
A key helps Flutter match old and new widgets when the tree changes. Without keys, widgets are matched by type and position, which breaks when items in a list are reordered, added or removed, and state sticks to the wrong item. Use ValueKey or ObjectKey on items in dynamic lists, and GlobalKey sparingly, since it is costly.
How do you avoid unnecessary rebuilds?Mid
Use const constructors, split large build methods into small widgets, keep state as low as it can be, and use selectors or select to rebuild only on the field that matters. Pass static subtrees as the child of AnimatedBuilder. Avoid heavy work in build. Confirm with Dev Tools rather than guessing.
How do you handle an API call in a Flutter app?Mid
I wrap it in a repository behind an interface, use http or dio with timeouts, map responses to typed models and map errors to my own exception types. The state object exposes loading, data and error states, and the widget switches on them. I never put secrets in the app, and I test the repository with a fake client.
What is the difference between hot reload and hot restart?Junior
Hot reload injects changed code into the running Dart VM and rebuilds the widget tree, keeping the current state. Hot restart restarts the app and resets all state. Changes to global initialisers, enums and native code need a restart or full rebuild. Both work only in debug mode.
How do you test a Flutter app?Mid
I write unit tests for logic with fakes, widget tests to check what appears and simulate taps, and a few integration tests for critical flows on a device. Golden tests catch visual regressions. Tests run in CI on every pull request, and I follow a pyramid with many unit tests and few integration tests.
What are platform channels?Senior
They let Dart send asynchronous messages to native Kotlin, Java, Swift or Objective-C code, and receive results. A MethodChannel handles calls, an EventChannel streams events. Both sides use the same channel name. I first look for a plugin, and use Pigeon for typed code or FFI for C libraries when a plugin does not exist.
Explain null safety in Dart.Junior
With sound null safety, a type such as String can never hold null; String? can. The compiler tracks this and flows type information through checks, so a null check promotes a local variable to non-null. It removes a large class of runtime errors. I avoid the bang operator and late unless I can guarantee the value.
How do you release a Flutter app to the stores?Mid
I set the version, icons and signing, then build an app bundle for Google Play and an archive for iOS. Play uses an upload key and testing tracks, with staged rollout. Apple needs certificates, App Store Connect, TestFlight and review. A CI pipeline with Fastlane or Codemagic automates the build, signing and upload.
When would you choose Flutter over native or React Native?Senior
Flutter fits when one team must ship consistent, custom-designed UI to several platforms quickly. Native fits when you need the newest platform features, deep system integration or the best platform feel. React Native suits teams with strong JavaScript skills and existing React code. I decide by team skills, UI needs and long-term maintenance. See React Native Roadmap.
Common mistakes
- Putting all code in one huge build method; split it into small widgets and use const constructors.
- Storing everything with setState in a top-level widget; lift state only as high as needed and adopt a state management tool.
- Using a BuildContext after an await without checking mounted; guard it to avoid errors.
- Forgetting to dispose controllers, focus nodes and stream subscriptions; cancel them in dispose.
- Measuring performance in debug mode; use profile or release builds on a real device.
- Parsing large JSON on the main isolate; move heavy work to an isolate.
- Using list indexes as keys in a list that reorders; use stable value keys.
- Committing signing keys and API secrets; keep them in encrypted CI secrets.
- Choosing packages without checking maintenance; check pub.dev scores and update history.
Ready-for-interview checklist
- I can write Dart with null safety, async and await, streams and sealed classes.
- I can explain the widget, element and render trees.
- I can build responsive, themed screens with Material widgets.
- I can navigate with go_router and pass data between screens.
- I can build implicit and explicit animations and a hero transition.
- I can explain the lifecycle of a stateful widget and dispose resources correctly.
- I can use at least two state management approaches and compare them.
- I can call a REST API, parse JSON into models and handle errors.
- I can store data locally with shared preferences, SQLite and secure storage.
- I can connect an app to a backend with authentication and push notifications.
- I can write unit, widget and integration tests.
- I can set up a CI pipeline and explain how to release to both stores.
- I can write a platform channel to call native code.
Related roadmaps
- React Native RoadmapComponents, navigation, native modules, performance and release.
- Swift and SwiftUI RoadmapSwift language, SwiftUI views, state, concurrency and data.
- Kotlin RoadmapNull safety, coroutines, collections and multiplatform.
- TypeScript RoadmapTypes, generics, narrowing, utility types and project setup.
- Git and GitHub RoadmapCommits, branches, rebasing, pull requests, Actions and recovery.
- API Design RoadmapREST, gRPC, GraphQL, versioning, auth, pagination and rate limits.
FAQ
Do I need to learn Dart before Flutter?
You need a working knowledge of Dart, but you can learn it alongside the first widgets. Spend the first two or three weeks on the language itself, especially null safety, futures and classes, because every Flutter concept builds on it.
Which state management should I learn first?
Start with setState and ValueNotifier to understand the basics. Then learn Provider or Riverpod, and read about BloC, because job listings mention all three. The ideas transfer between them.
Is Flutter still worth learning?
Yes. It is widely used for cross-platform apps and has an active community and strong tooling. It works best alongside knowledge of one native platform, which also helps with platform channels and releases.
Do I need a Mac to build Flutter apps?
Not for Android, web, Windows or Linux. To build and publish an iOS app you need a Mac with Xcode, or a cloud CI service that provides macOS machines.
How long does it take to build a first real app?
After the Dart basics, most learners can build a small app with navigation and an API in four to six weeks. A polished, tested and released app takes longer, and building several small apps teaches more than reading about every feature.