Skip to content
IT glossary
FrontendUpdated December 3, 2026

Flutter

With Flutter, you can build apps for Android, iOS, the web, and desktop from a shared codebase. The toolkit uses Dart for both the user interface and application logic.

Also known as: Dart

What Flutter gives you

Flutter is a cross-platform SDK. It includes a UI framework, a rendering engine, and tools for running, testing, and packaging apps. A team can share a checkout screen and its validation logic across Android and iOS, rather than implementing the flow twice. Dart is the programming language used to write Flutter apps; it isn't another name for Flutter.

How a screen updates

Flutter uses a declarative model: you describe what the screen should look like for the current data. That description is a tree of widgets. Some widgets display something, such as Text; others arrange content, such as Row, which places its children side by side.

A widget is an immutable configuration. A StatefulWidget can have a separate State object that keeps mutable data across rebuilds. Calling setState tells Flutter to schedule another build call for that state. Building produces new widget descriptions; it doesn't necessarily cause the whole screen to be laid out or repainted. For that reason, keep build focused on describing the UI rather than starting a network request every time it runs.

Example: toggling a label

The widget below can sit inside a Material app. Each tap flips a Boolean, and the next build chooses the label that matches it.

import 'package:flutter/material.dart';

class DetailsToggle extends StatefulWidget {
  const DetailsToggle({super.key});

  @override
  State<DetailsToggle> createState() => _DetailsToggleState();
}

class _DetailsToggleState extends State<DetailsToggle> {
  bool expanded = false;

  @override
  Widget build(BuildContext context) {
    return TextButton(
      onPressed: () => setState(() { expanded = !expanded; }),
      child: Text(expanded ? 'Hide details' : 'Show details'),
    );
  }
}

Assigning a new value to expanded changes the data, but the assignment alone doesn't schedule a rebuild. setState tells the framework about the change.

Where it fits

Flutter can target phones, browsers, and desktop operating systems. On mobile it generally draws its own controls rather than mapping each button or text field to an operating-system widget. For features such as camera access, apps typically use a plugin. When no suitable plugin exists, platform channels let Dart exchange messages with code running on the host platform. Sharing code still leaves platform-specific work: permissions, packaging, and testing keyboard, touch, and assistive-technology behavior on each target.

What interviewers ask

A common question is whether a StatelessWidget can rebuild. It can: for example, its parent can supply new inputs. The distinction is that it has no separate State object of its own. Another practical question is why a text field in a reorderable list might appear to keep another row's input. Explain how Flutter matches widgets to existing elements and why a stable key based on the item's ID helps state follow the item rather than its old position.