mobile development / flutter
Learn Flutter for Free: Dart First, Then Widgets, Then State
Flutter lets you write one codebase for Android, iOS, web and desktop. This page explains what the code actually looks like, follows the official learning pathway with the extra steps it leaves out, and is honest about the one thing Flutter cannot do without a Mac.
Flutter is an open-source UI toolkit from Google, and its own site describes it as a way to build natively compiled apps for mobile, web, desktop and embedded devices from a single codebase. The language is Dart, which most beginners have not used before. That is the first thing to plan around: you are learning a framework and a language at the same time, and the official pathway handles that by putting a Dart tutorial before the Flutter one.
Flutter is a good fit if you want one team and one codebase for both stores. If you already know React, the React Native guide may be a shorter road. If you want one platform only, Android or iOS go deeper into the native tools.
01 · WHAT FLUTTER CODE LOOKS LIKE
Everything is a widget
Flutter's documentation says you build your UI out of widgets, which describe what a view should look like given its current configuration and state. When the state changes, the widget rebuilds its description, and the framework compares it with the previous one to work out the minimal change. Here is a whole app that shows one line of text:
import 'package:flutter/material.dart';
void main() => runApp(const MaterialApp(home: Hello()));
class Hello extends StatelessWidget {
const Hello({super.key});
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(child: Text('Hello')),
);
}
}Read it from the inside out. Text is a widget. Center wraps it and centers it. Scaffold supplies the page structure. MaterialApp wraps everything with Material design. The nesting is the layout: there is no separate layout file. A StatelessWidget never changes after it is built. When you need a screen that changes, you use a StatefulWidget and call setState, which tells Flutter to run build again. Nearly everything in the first month is a variation on those two ideas.
build method passes about thirty lines. Your editor has a shortcut for it, and small widgets are easier to reuse.02 · THE OFFICIAL PATHWAY
Flutter's learning pathway, with notes
Flutter's docs lay out a four-step learning pathway. It is better than most third-party courses, and these notes say what to watch for at each step.
| Step | What the docs say | Notes |
|---|---|---|
| 1. Set up | Install Flutter and its dependencies for your machine | Pick one target first. The install page covers Android, iOS, web, Windows, macOS and Linux. |
| 2. Dart Getting Started | An interactive tutorial on variables, functions, classes and more. Skippable if you know a modern object-oriented language. | Do it if Dart is new. It runs in the browser. |
| 3. Flutter Getting Started | A hands-on tutorial building three small apps step by step | Type the code yourself. Change a value after each step. |
| 4. How Flutter Works | A video series on the widget tree and rendering pipeline | Watch after you have built something, when the vocabulary will land. |
The "Your first Flutter app" codelab is a good companion: it builds a name-generating app across about 85 minutes of listed time, and the page was last updated in September 2026. Together with the pathway, that gets you to a real, running app in under a week.
03 · THE IOS CATCH
Cross-platform does not mean no Mac
Flutter's own iOS setup page says you configure your environment to run, build and deploy Flutter apps for iOS devices, and it frames the setup around Xcode. In practice that means you can write and test your Flutter app for Android and the web on Windows or Linux, but producing an iOS build needs a Mac with Xcode. Publishing to the App Store also needs Apple's paid program at $99 per year, and Google Play charges a one-time $25 fee, per their developer pages. Plan for that before you promise a client "both stores from one codebase."
| Your computer | Android apps | iOS apps | Web and desktop |
|---|---|---|---|
| Windows | Yes | No: iOS builds need Xcode on a Mac | Web yes, Windows desktop yes |
| Linux | Yes | No: same reason | Web yes, Linux desktop yes |
| macOS | Yes | Yes, with Xcode | Web yes, macOS desktop yes |
04 · WHAT TO LEARN NEXT
State management and architecture
After the pathway comes the topic every Flutter learner hits: how to share state across screens. Start with setState and passing values down the tree. Flutter's own state management introduction explains when that stops being enough, and it surveys the main approaches without declaring one winner. Read it before you pick a package, and add one package at a time. Then read the architectural overview, which explains why hot reload works and how the framework is layered.
- Flutter learning pathway ↗The four-step official route: set up, Dart tutorial, Flutter tutorial, How Flutter Works video series.docs.flutter.dev
- Install and set up Flutter ↗Per-platform setup for Android, iOS, web, Windows, macOS and Linux, plus editor configuration for VS Code and Android Studio.docs.flutter.dev
- Learn Dart ↗The official Dart learning hub, including the interactive getting-started tutorial.dart.dev
- Introduction to Dart ↗The language tour. Reference it as you go rather than reading it cover to cover.dart.dev
- Dart cheatsheet ↗Embedded exercises with tests and solutions, one language feature at a time.dart.dev
- DartPad ↗Run Dart and Flutter code in the browser with nothing installed.dartpad.dev
- Your first Flutter app (codelab) ↗A guided build of a small app, from setup through navigation.codelabs.developers.google.com
- Flutter learning resources ↗The docs' collection of cookbook recipes, videos and samples.docs.flutter.dev
- State management introduction ↗When local state is enough and when to share it across the app.docs.flutter.dev
- Flutter architectural overview ↗How the framework is layered, how widgets become pixels, and why hot reload is possible.docs.flutter.dev
- Set up iOS development ↗The official iOS tooling steps, which assume Xcode.docs.flutter.dev
05 · COMMON TRAPS
Where Flutter learners lose time
- Skipping Dart. If null safety and classes are fuzzy, Flutter error messages will be baffling. Do the Dart tutorial.
- Installing a state package in week one. You will not know what problem it solves. Use
setStateuntil it hurts. - Building one huge build method. Break screens into small widgets early.
- Copying UI from screenshots pixel by pixel. Learn the layout widgets (Row, Column, Expanded, Padding) instead.
06 · FAQ
Frequently asked questions
Is Flutter free?
Flutter is open source and free to use, and Dart is too. The official learning pathway, the Dart tutorials and the codelabs are free. The only costs are optional: Apple charges $99 per year to publish on the App Store and Google charges a one-time $25 fee for Google Play.
Do I need to learn Dart before Flutter?
Flutter apps are written in Dart, so you need it, but you can learn it as you go. Flutter's learning pathway includes a Dart Getting Started tutorial first, which you can skip only if you already know a modern object-oriented language.
Can I build iOS apps with Flutter on Windows?
You can write the code on Windows and test the Android and web versions there, but building an iOS app requires Xcode, which runs only on a Mac. Flutter's iOS setup page assumes Xcode.
What is a widget in Flutter?
A widget is a description of part of the interface, such as text, a button, a row or padding. You build screens by nesting widgets. When state changes, Flutter rebuilds the description and updates only what changed.
Is Flutter or React Native better for beginners?
If you already know React and JavaScript, React Native has a shorter on-ramp. If you are starting from scratch, Flutter's single official pathway is easy to follow. Both are free and both reach Android and iOS.