What is Flutter?

In short
Flutter is an open-source toolkit from Google for building apps from one shared codebase. You write the code once in the Dart language, and the same app can run on several platforms, including Android, iOS and the web. The user interface is built from widgets, which are the basic blocks of every screen.
What Flutter does
Flutter is a toolkit for building user interfaces. You use it to make apps that run on phones, tablets, desktops and the web. The main idea is simple: you keep one codebase and build for several platforms from it. Instead of writing one app in Swift for iPhone and another in Kotlin for Android, you write one project and let Flutter handle the rest.
Flutter apps are written in Dart, a programming language also made by Google. If you already know another modern language, Dart will feel familiar. Dart is the language you type; Flutter is the framework that turns your code into screens.
How it works: widgets
Everything in Flutter is a widget. A widget is the basic building block of a Flutter user interface. A button is a widget. A line of text is a widget. A padding around a button is also a widget. A whole screen is a widget too, made of smaller widgets placed inside each other.
This tree of widgets describes what you see on the screen. Some widgets only show something, such as text or an image. Others arrange children, such as a column that stacks items from top to bottom. Once you learn a small set of common widgets, you can combine them to build almost any layout.
Layout follows a simple rule that the Flutter docs describe in short form: constraints flow down, sizes flow up, and parents set positions. In plain words, a parent tells its child how much space it may use. The child picks a size within that limit and reports it back. The parent then decides where to place the child. Learning this rule makes layout problems much easier to solve.
Interactivity and state
Most apps change over time. A counter goes up when a user taps a button, or a list loads new items. In Flutter, this is handled with stateful widgets. A stateful widget keeps some data, called state, and rebuilds its appearance when that data changes. The documentation has a guide on adding a stateful widget to an app, which is a good next step after you understand layouts.
A simple example
A small Flutter app starts with one root widget that returns a screen. The code below shows the general shape, not a full project:
import 'package:flutter/material.dart';
void main() { runApp(const MaterialApp( home: Scaffold( body: Center( child: Text('Hello, Flutter'), ), ), )); }
Here, runApp starts the app, and each nested widget adds one piece of the screen: a basic app frame, an empty page, a centered area and a line of text. You change the screen by changing the widgets in this tree.
When to use it
Flutter fits well when you want one team to ship the same app on several platforms and keep the look consistent. It is also a good choice when you care about custom user interfaces, because you draw the screen yourself through widgets rather than relying only on the native controls of each platform.
It is less of a natural fit when your app must depend heavily on platform-specific controls, or when your team already has deep expertise in one native language and only targets one platform. In those cases, a native approach may be simpler.
Getting started
The official documentation begins with setting up your Flutter environment, then following a learning pathway. If you come from another platform, the docs also include guides for developers coming from Android, SwiftUI, UIKit, React Native and Xamarin.Forms. Start with the environment setup, build a small screen, and then move on to layouts and interactivity.
If you are new to mobile development in general, you may find it helpful to read about what a mobile app is and how app stores deliver software before you start.
Common mistakes
Beginners often try to learn everything at once. Focus first on the widget tree and the layout rule. Another common mistake is putting too much logic inside the build method of a widget. Keep screens small and move logic into separate pieces as the app grows. Finally, remember that the documentation is updated over time, so check the version notes on the official site when a tutorial looks different from what you see.
FAQ
Do I need to know Dart before learning Flutter?
Dart is the language used to write Flutter apps, so you will need to learn its basics. If you already know a language such as JavaScript, Java or C#, the syntax will feel familiar. Start with the basics and then move to Flutter widgets.
Can one Flutter codebase run on both Android and iOS?
Yes. Flutter is designed to build apps for several platforms from a single codebase. You still test each target platform, because details such as device behavior and store rules can differ.
What is a widget in Flutter?
A widget is the basic building block of a Flutter user interface. Text, buttons, padding and whole screens are all widgets. You build an app by nesting widgets inside each other.
Where should I start with Flutter?
Begin with the official setup guide to install the tools, then follow the learning pathway. After that, read about layouts and constraints, and then learn how to add interactivity with stateful widgets.
Sources
This page is based on the official documentation below. Read it for full detail.
Flutter — official documentation ↗