Financial TimesAmericas' Fastest-Growing 2025
Certified PartnerOdoo Gold · Adobe Gold Solution · Shopify Premier partnershipsOdoo Gold · Adobe Gold · Shopify Premier partnerSee all
One business dayA senior architect replies to every inquiry · +1 (631) 897-7276Architect reply within one business dayLet's talkCall us
Inc. Regionals 2025Fastest-growing private companies in AmericaInc. Regionals 2025 honoreeSee awards
Americas' Fastest-Growing Companies 2025Recognized by the Financial TimesFT Fastest-Growing Companies 2025See the rankingRanking
4.8 / 5 on Clutch265 verified client reviews4.8/5 on Clutch · 265 reviewsRead the reviews
4.8 · 265 Clutch reviews
US United States
February 5, 20259 min readUpdated on October 25, 2026

Flutter for IoT: build the apps and the screens, leave the firmware alone

· Vice President, Mobility Solutions
Flutter for IoT: build the apps and the screens, leave the firmware alone

The firmware is done, the sensor board passes its tests, and someone asks the obvious question: who builds the app? Flutter for IoT is a reasonable answer to that question, with one boundary. Flutter builds the screens people touch: the phone app that pairs and controls the device, the operator dashboard, and the device's own display when it runs Linux. It doesn't run on the microcontroller reading the sensor, and nobody should try to make it.

This guide covers IoT app development with Flutter as of Flutter 3.47. It walks through Bluetooth Low Energy for setup and MQTT for everything after. It also covers the threading rules that keep a busy app responsive and the embedders that put Flutter on embedded Linux hardware.

Where Flutter for IoT fits in a connected product

Most connected products have four or five software layers. Flutter covers two or three of them well. The rest belong to firmware, cloud and native code.

Layer Can Flutter build it? What usually sits there
Sensor and microcontroller firmware No C or C++ on an RTOS or bare metal
Phone companion app (iOS and Android) Yes, one codebase Pairing, control, alerts, history
Operator or admin dashboard Yes, as a web or desktop app Fleet views, device settings, reports
Device touchscreen on embedded Linux Yes, through an embedder Kiosks, appliances, in-vehicle screens
Cloud broker and device registry No AWS IoT Core, a managed or self-hosted MQTT broker

The official target list is narrower than that table. Flutter's supported platforms page lists Android API levels 24 to 37 and iOS 15 to 27. For Linux, it lists Debian 10 to 13 and Ubuntu 20.04 LTS to 24.04 LTS, both on x64 and Arm64. Anything else, including most custom IoT boards, runs Flutter through an embedder you or the community maintain. More on that below.

The companion app: Bluetooth for setup, MQTT for the rest

A typical IoT companion app does two jobs. First it finds a new device nearby, pairs with it and hands it Wi-Fi credentials. After that, it talks to the device through the cloud, often from miles away. Those two jobs use different protocols, and Flutter has mature packages for both.

Smartwatches are a special case of this pattern, with their own toolkits and store rules. A separate guide on Flutter for wearable app development covers them; this one sticks to sensors, appliances and gateways.

Bluetooth Low Energy: pick the package by license and role

Three packages cover most BLE work in Flutter, and they differ in ways that matter before you write any code.

Package Publisher on pub.dev Platforms Role License
flutter_blue_plus jamcorder.com Android, iOS, macOS, Linux, web Central only Free for nonprofit, personal and educational use; commercial license for for-profit use
flutter_reactive_ble meethue.com Android, iOS Central (scan, connect, read, write, subscribe) BSD-3-Clause
bluetooth_low_energy zeekr.dev Android, iOS, Linux, macOS, Windows Central and peripheral (no peripheral on Linux) MIT

The license column is the one teams miss. The flutter_blue_plus page says for-profit use requires a commercial license. Budget for it or pick another package.

The role column matters when the phone has to act like the device. Most companion apps are BLE centrals that scan and connect. If your test rig or provisioning flow needs the phone to advertise as a peripheral, only bluetooth_low_energy covers that among these three.

Permissions and background limits

BLE permissions are where pairing flows break in production, usually on one platform at a time.

On Android 12 and higher, Google's Bluetooth permissions guide asks for BLUETOOTH_SCAN to find devices and BLUETOOTH_CONNECT to talk to paired ones. These are runtime permissions, and users see them as a single "Nearby devices" prompt. If your app never derives location from scan results, you can flag BLUETOOTH_SCAN with neverForLocation. Google warns that the flag filters some BLE beacons out of scan results, so test with your real hardware. On Android 11 and lower, a BLE scan still needs ACCESS_FINE_LOCATION.

On iOS, add NSBluetoothAlwaysUsageDescription to Info.plist. Background work is where iOS gets strict. Apple's Core Bluetooth background guide says apps need the bluetooth-central background mode to keep discovering and connecting. Even then, background scans coalesce repeat discoveries into one event and run less often. A woken app has around 10 seconds to finish its task. The flutter_blue_plus page calls background use an advanced case that may need a fork.

For a provisioning flow, this means one rule: design pairing as a foreground task with the screen on. Don't promise users that the app will quietly reconnect to a sensor from a locked phone unless you've tested it on both platforms.

If the app also finds devices on the local network, iOS adds one more key. Apple says any app that uses the local network, directly or indirectly, should include NSLocalNetworkUsageDescription. That covers local service discovery as well as direct connections to devices on the same network.

MQTT, WebSockets and CoAP once the device is online

After setup, many devices publish over MQTT, and the Flutter app subscribes. Four Dart packages cover the common cases.

  • mqtt_client supports MQTT 3.1 and 3.1.1 over TCP, secure TCP and WebSockets. In the browser it's WebSockets only.
  • mqtt5_client covers MQTT 5. Its page notes that shared subscriptions, subscription identifiers, server redirection and flow control aren't complete yet. Check that list against your broker design.
  • web_socket_channel, from the Dart team's tools.dart.dev publisher, handles plain WebSocket feeds from a gateway or your own backend.
  • coap implements CoAP over UDP (RFC 7252) with Observe and block-wise transfers. DTLS support is experimental and binds to OpenSSL through FFI, which iOS and Windows don't ship natively.

If your broker is AWS IoT Core, read its protocol and port table before you design authentication. Plain MQTT on port 8883 authenticates with an X.509 client certificate. MQTT over WebSocket on port 443 uses Signature Version 4, which AWS ties to Cognito or your own backend. For a phone app, the SigV4 route usually fits better than shipping a device certificate inside the app. AWS lists SigV4 MQTT connections at up to 24 hours, not guaranteed, so build reconnect logic from day one. AWS says the same about every connection type: devices must detect disconnections and reconnect.

Keep sensor traffic off the UI thread

A dashboard that subscribes to a few hundred devices can receive more messages than one thread should parse. Flutter's guidance is plain about the limit. Its isolates page says Flutter paints a frame 60 times per second on a 60Hz device, and late frames show up as jank. Work that can't finish between two frames belongs in another isolate.

Isolate.run is the simple tool for one-off parsing, such as decoding a large history export. A long-lived isolate with SendPort and ReceivePort suits a steady telemetry stream.

There's a limit worth knowing before you design around it. Background isolates can call platform plugins, but the same page says they can't receive unsolicited messages from the host platform. A BLE notification stream is exactly that kind of message. In practice, keep the plugin subscription on the main isolate and send raw bytes to a worker isolate for decoding.

Native code enters in two places:

  1. Platform channels. Flutter's platform channels docs list Kotlin or Java on Android, Swift or Objective-C on iOS, and C on Linux. Channel methods must be invoked on the platform's main thread. The Pigeon package generates type-safe channel code, which beats matching message names by hand.
  2. dart:ffi. Since Flutter 3.38, the recommended way to bind native code is flutter create --template=package_ffi, which compiles C through a build hook. For IoT teams this has a practical use. If your firmware team already has a C library that decodes the device's binary protocol, the app can call the same code instead of reimplementing it in Dart.

Flutter on the device itself: embedded Linux

Flutter's embedded support page names smart displays and thermostats as examples. It says embedding is stable but uses a low-level API that's "not for beginners." That's an accurate description.

You have three routes, depending on the hardware.

Stock Linux build. If the device runs a supported Debian or Ubuntu release with a desktop stack, the standard Linux target can work. The Linux build docs list GTK 3 among the runtime libraries, so a lean appliance image may not have what it needs.

A community embedder. These run Flutter on Linux without a full desktop.

Embedder Maintainer Display paths Notes
flutter-pi Open source, MIT Direct to the display, no X11 or Wayland Known to work on Raspberry Pi 2, 3, 4 and Zero 2 W; needs KMS/DRI 3D acceleration; GPIO, serial and SPI packages listed
ivi-homescreen Toyota Connected, Apache 2.0 Wayland, DRM/KMS, headless, software rendering Targets Yocto, Ubuntu, Fedora and Raspberry Pi OS; written in C++
flutter-embedded-linux Sony, unofficial Wayland, DRM with GBM, EGLStream for NVIDIA Arm64 is the main target; apps build with the separate flutter-elinux tool

Your own embedder. The engine exposes a C API in a single header, embedder.h, which the Flutter team describes as having a stable ABI in its custom embedder notes. The same notes say the team doesn't support custom engine builds or commit to fixing bugs in them. You own the maintenance every time the engine moves.

That trade-off hasn't stopped Toyota. Flutter's Toyota showcase says Toyota built a custom embedder as one of its first pieces of technology and wrote plugins for automotive functions. The infotainment system debuted on the 2026 Toyota RAV4 and 2026 Lexus ES.

None of these embedders targets a bare microcontroller. They all need Linux, and flutter-pi also needs GPU acceleration. If your device has a small monochrome display driven by a microcontroller, the firmware team draws that screen, and Flutter's job ends at the phone.

How to plan IoT app development with Flutter

Flutter is a sound default for the app layer of most IoT products. It's a poor fit when the product is mostly background BLE work on iOS, or when the only screen is on a microcontroller. Before anyone writes a widget, settle these five things:

  1. Draw the layer map. Mark which screens exist and which processor drives each one. Only the Linux and phone screens are Flutter candidates.
  2. Choose the BLE package with legal in the room. The license and role columns decide it, not GitHub stars.
  3. Fix the broker and its authentication. Certificates for devices, short-lived credentials for people, and reconnect logic everywhere.
  4. Write the device-to-app contract. Message topics, payload formats and version fields, owned jointly by firmware and app teams.
  5. Budget the native code. Provisioning, background behavior and vendor SDKs usually need a few platform channels, so plan the Kotlin, Swift or C time up front.

Step 4 is where our IoT development team would start, because a loose message contract causes more rework than any framework choice. If the device side is settled and you need the apps built, see our Flutter app development and mobile application development services, or send us the device spec.

FAQ

Can a Flutter web dashboard talk to IoT devices directly?

Yes, through a broker over WebSockets. The mqtt_client and mqtt5_client packages support only ws and wss connections in the browser, so your broker needs a WebSocket endpoint. Flutter's isolates page also notes that web builds don't support isolates, so heavy parsing runs on the main thread. Keep aggregation on the server for large fleets.

Does Flutter work with Bluetooth Classic devices?

Not through flutter_blue_plus, which supports BLE only and lists Classic serial modules such as the HC-05 as unsupported. All three packages compared above are BLE packages. For a Classic device, plan a different plugin or a platform channel to the native Bluetooth APIs, and test on both platforms early.

Older tutorials connect Flutter apps to Google Cloud IoT Core. Do they still work?

No. Google's Google.Cloud.Iot.V1 library reference gives August 16, 2023 as the IoT Core retirement date. The mqtt_client package still ships an example built for IoT Core's MQTT bridge, so treat it as a code pattern only. Point the same client at AWS IoT Core or another MQTT broker.

How do you test a Flutter IoT app without hardware on every desk?

Put the BLE and MQTT layers behind interfaces the rest of the app depends on, then swap in fakes for widget and unit tests. A local MQTT broker with a script that replays recorded device messages covers most of the telemetry side. Keep a small shelf of real devices for pairing and permission tests, because those are the flows fakes hide.

ShareLinkedInXEmail

Related reading

Building a mobile product?

Explore mobile app development