Articles
Flutter guides, with code.
In-depth guides and tutorials about Flutter development. State management, Firebase, animations, architecture and performance.
-
UI & layout
-
Device & native
Camera and Gallery Integration in Flutter (image_picker)
We cover taking a photo with the camera, picking single or multiple images from the gallery, displaying the selected file, and limiting its size with image_picker. -
Device & native
Biometric Authentication in Flutter (local_auth)
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. -
Testing & quality
Writing Widget and Integration Tests in Flutter
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. -
Device & native
Accessing Native Code with Platform Channels in Flutter
What do you do when there's no ready-made package? We look at wiring your Dart code to Android (Kotlin) and iOS (Swift) with MethodChannel, EventChannel, and proper error handling. -
Firebase
Real-Time Data Streams with Cloud Firestore in Flutter
Listen to Firestore data live with StreamBuilder and collection.snapshots(). We look at combining streams with queries, offline behavior, and common pitfalls. -
Navigation
Deep Link Management in Flutter
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. -
Firebase
Push Notifications (Firebase Cloud Messaging) Integration in Flutter
We walk through requesting permission, catching messages in the foreground/background/terminated states, and showing local notifications with firebase_messaging. -
Performance
Caching Images in Flutter: Using cached_network_image
Image.network re-downloads the same picture every time. We look at disk and memory caching with cached_network_image, placeholders, and custom cache management. -
UI & layout
Accessibility in Flutter: The Semantics Widget
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. -
UI & layout
Sliver Widgets and CustomScrollView in Flutter
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
Performance Profiling in Flutter: Using DevTools
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. -
Firebase
Integrating Firebase Authentication in Flutter
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. -
Performance
Running Heavy Work in the Background in Flutter with Isolates
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
State Management in Flutter with the BLoC Pattern
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. -
UI & layout
Custom Drawing in Flutter with CustomPainter
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. -
Fundamentals
Multi-Language Support in Flutter with Localization (l10n)
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. -
Data & networking
Local Data Storage in Flutter: Hive vs SharedPreferences vs Secure Storage
Which data belongs where? A simple theme preference belongs in SharedPreferences, a structured cache belongs in Hive, and a session token should never go into SharedPreferences — it belongs in secure storage. We compare all three with code examples. -
Animation
Using AnimatedSwitcher and AnimatedCrossFade in Flutter
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. -
Animation
Loading States in Flutter with a Shimmer Effect
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. -
UI & layout
Responsive Design in Flutter: LayoutBuilder and MediaQuery
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. -
Animation
Page Transitions with Hero Animations in Flutter
Build smooth transitions between list and detail pages with the Hero widget. We cover tag matching, flightShuttleBuilder, and its limitations with practical examples. -
Navigation
Navigation Management with go_router in Flutter
Learn declarative route definitions with go_router, path parameters, shared navigation bars with ShellRoute, and building an auth guard with redirect. -
UI & layout
Dark Mode / Theme Management in Flutter
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. -
UI & layout
Form Validation and TextFormField in Flutter
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. -
Fundamentals
A Deep Dive into Null Safety in Flutter
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. -
UI & layout
RefreshIndicator: How to Do Pull-to-Refresh Right
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. -
Animation
AnimatedSize: Smoothly Growing and Shrinking Changing Content
Animate the height of a widget whose content grows or shrinks, without knowing that height in advance. We look at how AnimatedSize works, the constraint trap and how to combine it with AnimatedSwitcher. -
Animation
AnimatedDefaultTextStyle: Animating Text Style Changes
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. -
UI & layout
FittedBox: Fitting Content into a Box Without Overflow
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. -
UI & layout
Wrap: Automatically Moving Widgets That Don't Fit to the Next Line
Tags, filter chips, buttons... Build a layout that wraps onto the next line by itself instead of a Row that overflows when the screen width changes. We look at Wrap's parameters, alignment options and limitations. -
Fundamentals
Why Is Flutter Better Than React Native? A Comprehensive Comparison
We compare Flutter and React Native across critical areas like performance, developer experience, UI and community support, and look at why Flutter stands out. -
Data & networking
API Integration and HTTP Requests in Flutter
Learn how to work with REST APIs in Flutter applications. We'll cover HTTP requests, JSON parsing, error handling, and state management in detail. -
Fundamentals
Getting Started with Flutter
We're getting started with Flutter. Learning basic concepts, installation, and creating your first application. -
State management
State Management: Provider vs Riverpod
We compare state management solutions in Flutter. Learning the differences between Provider and Riverpod and when to use which.