← Dashboard

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.

updated Nov 2026·a 12-minute read·every link checked in a browser

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:

main.darta complete app
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.

TIPUse the nesting, not fight it. Deep widget trees look scary. Extract a piece into its own widget whenever a 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.

Flutter's four steps
StepWhat the docs sayNotes
1. Set upInstall Flutter and its dependencies for your machinePick one target first. The install page covers Android, iOS, web, Windows, macOS and Linux.
2. Dart Getting StartedAn 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 StartedA hands-on tutorial building three small apps step by stepType the code yourself. Change a value after each step.
4. How Flutter WorksA video series on the widget tree and rendering pipelineWatch 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."

Which platforms you can build on which computer
Your computerAndroid appsiOS appsWeb and desktop
WindowsYesNo: iOS builds need Xcode on a MacWeb yes, Windows desktop yes
LinuxYesNo: same reasonWeb yes, Linux desktop yes
macOSYesYes, with XcodeWeb 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.

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 setState until 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.
TRY ITA one-evening test: run the first codelab, then add one feature it does not have, such as clearing the list of favorites. Doing it without a tutorial is the real check that you understand widgets and state.

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.

Compare and continue

Related guides for the next step.