Flutter Articles

In-depth guides and tutorials about Flutter development

Reducing App Size in Flutter with Deferred Components

Advanced · · 8 min

Download size directly affects store conversion rates. We look at finding what's taking up space with --analyze-size, and shrinking your Flutter app with deferred imports and tree-shaking.

Setting Up a CI/CD Pipeline for Flutter with GitHub Actions

Advanced · · 9 min

Automatic analysis, tests and builds on every push... We set up a CI/CD pipeline for a Flutter project from scratch with GitHub Actions: caching, branch triggers, and safely storing signing credentials included.

Layered Architecture in Flutter with Clean Architecture

Advanced · · 10 min

Presentation, Domain and Data layers... We look at how to build a testable, maintainable Flutter project by separating business logic from the UI and the data source with the Repository pattern and UseCases.

Data Visualization in Flutter with fl_chart

Intermediate · · 7 min

Bar charts, line charts and touch tooltips... We look at how to visualize your data with the fl_chart package, performant and animated, without writing a CustomPainter from scratch.

Biometric Authentication in Flutter (local_auth)

Intermediate · · 7 min

Add fingerprint and face recognition sign-in with the local_auth package. We cover checking device support, the authenticate() call, and what biometrics actually guarantees.

Writing Widget and Integration Tests in Flutter

Intermediate · · 8 min

We look at testing widgets with testWidgets, WidgetTester and find, plus end-to-end verification on a real device with golden tests and integration_test, through real examples.

Deep Link Management in Flutter

Intermediate · · 7 min

Tapping a web link opens the right screen straight in your app. We look at Universal Links, App Links, and deep link support with go_router.

Accessibility in Flutter: The Semantics Widget

Beginner · · 6 min

Can your app be used with a screen reader? We cover accessibility in Flutter through the Semantics widget, the label/hint/value parameters, and touch target sizing.

Sliver Widgets and CustomScrollView in Flutter

Intermediate · · 8 min

For what ListView and GridView can't solve on their own: expanding and collapsing app bars, sticky headers and mixed scrollable areas. We look at CustomScrollView and slivers.

Performance Profiling in Flutter: Using DevTools

Advanced · · 9 min

Why is the app stuttering, which widget is rebuilding needlessly, where is memory leaking? We use Flutter DevTools' Performance, Memory and CPU Profiler tabs to track down the source of jank.

Integrating Firebase Authentication in Flutter

Advanced · · 10 min

Email/password sign-up, sign-in, session tracking and sign-out... We build the core authentication flow end to end with the firebase_auth package, covering error handling and auth-guard integration with go_router.

Running Heavy Work in the Background in Flutter with Isolates

Advanced · · 9 min

Does the UI freeze while parsing a large JSON or running a heavy computation? We look at Dart's single-thread model, the compute() function, creating a manual isolate with Isolate.spawn, and when each one is actually needed.

State Management in Flutter with the BLoC Pattern

Advanced · · 10 min

We've covered Provider and Riverpod; next is BLoC, an event-driven approach. With the flutter_bloc package, we look at the difference between Bloc and Cubit, modeling events/states, and using BlocBuilder/BlocListener with examples.

Custom Drawing in Flutter with CustomPainter

Intermediate · · 8 min

Need a progress ring, a chart, or a custom background that off-the-shelf widgets can't draw? We look at drawing directly on a Canvas with CustomPaint and CustomPainter, getting shouldRepaint right, and staying performant.

Multi-Language Support in Flutter with Localization (l10n)

Intermediate · · 8 min

Move every piece of text in your app into .arb files and generate a type-safe AppLocalizations class with flutter gen-l10n. We cover every piece of multi-language support, from l10n.yaml configuration to ICU plural syntax and switching language at runtime.

Using AnimatedSwitcher and AnimatedCrossFade in Flutter

Intermediate · · 6 min

Does switching between two widgets after setState feel like an abrupt jump? AnimatedSwitcher and AnimatedCrossFade automatically apply a fade/scale transition whenever a child changes. We look at the role of the key, transitionBuilder, and the difference between the two widgets.

Loading States in Flutter with a Shimmer Effect

Intermediate · · 6 min

Instead of a spinning CircularProgressIndicator, a shimmer/skeleton screen that shows a ghost version of the content makes an app feel faster and less 'empty'. We build our own shimmer widget from scratch with AnimationController and ShaderMask, no package required.

Responsive Design in Flutter: LayoutBuilder and MediaQuery

Intermediate · · 7 min

A layout that looks great on a phone shouldn't turn into a narrow strip surrounded by empty space on desktop. Learn where to use MediaQuery.sizeOf, LayoutBuilder and OrientationBuilder so a single codebase adapts cleanly to every screen.

Page Transitions with Hero Animations in Flutter

Intermediate · · 7 min

Build smooth transitions between list and detail pages with the Hero widget. We cover tag matching, flightShuttleBuilder, and its limitations with practical examples.

Dark Mode / Theme Management in Flutter

Beginner · · 6 min

Manage light and dark themes with MaterialApp's theme, darkTheme and themeMode parameters, persist the user's choice, and add your own brand colors to the theme system with ThemeExtension.

Form Validation and TextFormField in Flutter

Beginner · · 7 min

Validate multi-field forms in one go with Form and GlobalKey<FormState>. We walk through validator, autovalidateMode, chaining fields with FocusNode, and wiring the submit button to form validity.

A Deep Dive into Null Safety in Flutter

Beginner · · 6 min

Dart's sound null safety catches null errors at compile time. We look at nullable types, the ??/?. operators, type promotion, and the real difference between late and ! with practical code examples.

RefreshIndicator: How to Do Pull-to-Refresh Right

Intermediate · · 7 min

Add Material's pull-to-refresh behavior with RefreshIndicator. We cover the "doesn't show on short lists" issue, empty states, error handling, programmatic triggering and web/desktop details.

AnimatedDefaultTextStyle: Animating Text Style Changes

Intermediate · · 6 min

Update text smoothly instead of instantly when its size, color or weight changes. We look at how AnimatedDefaultTextStyle works, its parameters and the details worth watching out for.

FittedBox: Fitting Content into a Box Without Overflow

Intermediate · · 6 min

A long number, a narrow button or a big title on a small screen... FittedBox scales its content to the space it has. We look at the BoxFit options, why scaleDown is usually the right choice and the common mistakes.

API Integration and HTTP Requests in Flutter

Intermediate · · 12 min

Learn how to work with REST APIs in Flutter applications. We'll cover HTTP requests, JSON parsing, error handling, and state management in detail.

Getting Started with Flutter

Beginner · · 5 min

We're getting started with Flutter. Learning basic concepts, installation, and creating your first application.

State Management: Provider vs Riverpod

Advanced · · 8 min

We compare state management solutions in Flutter. Learning the differences between Provider and Riverpod and when to use which.