Anyone who wants to build a mobile app soon runs into the same question: should you learn Kotlin for Android and Swift for iOS, or is it possible to write the app once for both platforms? “Flutter developer” is also showing up more and more often in job postings in Baku. So what is Flutter, how does it work, and where should a beginner start learning it? In this article, we explain the core concepts of Flutter in plain language, walk through a short code example and lay out a step-by-step learning roadmap.
What is Flutter and what is it used for?
Flutter is an open-source UI framework created by Google. The main idea behind it is simple: you write one codebase and get an app for both Android and iOS. Flutter can also build apps for the web, Windows, macOS and Linux, but in practice it is used mostly for mobile projects.
Flutter code is written in Dart. Dart is another Google language, and its syntax will feel familiar to anyone who knows Java, C# or JavaScript. Variables, functions, classes, asynchronous programming with async/await — it’s all there. For those starting programming from scratch, Dart is a fairly simple and readable first language.
How does Flutter work?
What sets Flutter apart from other cross-platform approaches is how it draws the interface. Flutter doesn’t borrow buttons, text, lists and other elements from the platform’s built-in components — it draws them itself using its own rendering engine. This has several consequences:
- the app looks and behaves the same on Android and iOS;
- it becomes easier to implement a designer’s mockup with pixel-perfect accuracy;
- you get plenty of room to create animations and custom UI elements.
In the release build, Dart code is compiled directly into machine code for the device’s processor. This helps the app start quickly and run smoothly. During development, Flutter runs in a different mode so that developers can see their changes instantly — more on this in the hot reload section below.
Everything is a widget
In Flutter, everything you see on the screen is a widget: text (Text), an image (Image), a button (ElevatedButton), spacing (Padding) and even the containers that arrange elements (Row, Column). Widgets are nested inside one another, forming a tree structure called the widget tree. For example, a screen may consist of a Scaffold containing a Column, which in turn holds several Text widgets and a button.
The advantage of this approach is that a complex interface is built from small, reusable pieces. A “product card” widget you create once can be reused anywhere in the app.
StatelessWidget and StatefulWidget
There are two main types of widgets:
- StatelessWidget — a widget whose state doesn’t change, such as a static heading or an icon. As long as the data passed to it stays the same, its appearance stays the same too.
- StatefulWidget — a widget with internal state that is redrawn whenever that state changes, such as a counter, a checkbox in a form or a list loaded from a server.
A quick example: a counter app
The code below is a simple app that increases the number on the screen by one each time the button is pressed. It uses both a StatelessWidget and a StatefulWidget:
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(home: CounterPage());
}
}
class CounterPage extends StatefulWidget {
const CounterPage({super.key});
@override
State createState() => _CounterPageState();
}
class _CounterPageState extends State {
int _count = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Counter')),
body: Center(child: Text('$_count', style: const TextStyle(fontSize: 48))),
floatingActionButton: FloatingActionButton(
onPressed: () => setState(() => _count++),
child: const Icon(Icons.add),
),
);
}
}
Here’s how the code works:
- The
main()function starts the app and puts theMyAppwidget on the screen. MyAppis a StatelessWidget: it simply sets up the app’s main frame (MaterialApp).CounterPageis a StatefulWidget because it holds data that changes:_count.- When the button is pressed,
setState()is called. This tells Flutter “the state has changed, update the screen”, and thebuild()method runs again with the new value.
This small example shows Flutter’s core principle: the UI is a function of state. You don’t change the screen by hand — you change the state, and Flutter rebuilds the interface to match.
Hot reload: see your changes in seconds
One of the features Flutter developers love most is hot reload. While the app is running on an emulator or a phone, you change a color, some text or the layout in the code, save the file, and the result usually appears on the screen within a second or two. Best of all, the app’s current state is preserved: if the counter was at 7, it stays at 7 after you change the interface. This makes working on the design and tracking down bugs much faster.
Flutter or native development?
Flutter isn’t the only right choice for every project. Here are a few things worth considering when making the decision.
Flutter’s strengths
- Two platforms from one codebase — saving time and resources for small teams and startups;
- the same design and behavior on both platforms;
- fast development thanks to hot reload;
- a rich package ecosystem (pub.dev): ready-made solutions for HTTP requests, Firebase, maps, local storage and more.
When native development is the better choice
- the app relies heavily on the platform’s newest or highly specific capabilities (for example, special sensors or system-level integrations);
- the team already has strong Kotlin and Swift specialists and is developing a large existing native project;
- the app is specifically required to fully match each platform’s “native” look.
In practice, the picture often looks like this: business apps, online stores, service booking apps and internal corporate apps are a great fit for Flutter, while specialized solutions deeply tied to the platform are easier to build natively. Flutter can also communicate with native code when needed, but that requires additional knowledge.
A roadmap for learning Flutter
To learn Flutter systematically, it makes sense to follow this sequence:
- Dart basics. Variables and types,
var,final,const, null safety, conditionals, loops, functions and collections (List, Set, Map). - OOP and asynchronous Dart. Classes, inheritance, abstract classes, mixins;
Future,async/awaitandStream. - Setting up your environment. The Flutter SDK, VS Code or Android Studio, an emulator; the
flutter doctorcommand to check your setup. - UI basics. Core widgets, layout with
Row,Column,StackandExpanded, lists withListView, Material 3 theming and dark mode. - Navigation. Moving between screens, passing data, the
go_routerpackage. - State management. Start with
setState, then move on to approaches such as Provider, Riverpod or Bloc. In large apps, managing state properly is key to keeping the code clean. - Networking and data. Working with REST APIs, converting JSON into model classes, local storage, Firebase (Authentication, Cloud Firestore).
- Quality and publishing. Unit and widget tests, the app icon and splash screen, APK/AAB builds, publishing via Google Play Console and App Store Connect.
Building a small project after each stage reinforces what you’ve learned: for example, a notes app, a weather screen (using a public API) or a simple online catalog. Projects like these also come in handy as a GitHub portfolio when you apply for jobs.
What skills does a Flutter developer need?
Employers usually expect more than just “knowing Flutter”. Here are the key skills expected from a junior developer:
- a solid grasp of Dart and OOP principles;
- understanding the widget tree and the layout system, and being able to turn a mockup into code accurately;
- experience with at least one state management approach;
- working with REST APIs and properly handling errors and loading states;
- using Git to collaborate within a team;
- familiarity with architectural concepts such as Clean Architecture and the Repository pattern;
- testing the app and knowing how to publish it to the app stores.
Common beginner mistakes
- Skipping Dart and jumping straight into Flutter. Working with widgets without knowing the language basics, especially null safety and asynchronous programming, quickly leads to confusion.
- Writing all the code in one file and one widget. Breaking a screen into small, named widgets makes the code both readable and testable.
- Choosing a complex state management solution too early. It’s more productive to first understand why and how
setStateworks, and only then move on to more powerful tools. - Forgetting about error and loading states. What will the app show the user when there’s no internet connection or the server doesn’t respond? Thinking about this from your very first projects should become a habit.
Conclusion
Flutter is a powerful tool for building modern, smooth apps for both Android and iOS from a single codebase. Its logic rests on a few core concepts: the Dart language, a tree of widgets, an interface that is redrawn as the state changes, and hot reload, which speeds up development. Once you understand these concepts, you can learn topics such as navigation, state management, APIs and Firebase step by step.
If you’d like to learn Flutter with a teacher’s support — from Dart basics all the way to a real project and publishing an app to the stores — take a look at our Flutter course. The course covers topics such as state management, REST APIs, Firebase, testing and CI/CD through hands-on assignments.