Flutter kiosk apps in production: lessons from Android deployments
We built Flutter kiosk apps for live events, on Android tablets and on an RK3576 totem running Android 14. This guide stays with Android and with what we saw on those devices.
To run a Flutter kiosk app in production on Android, make it the device's home app or use lock task mode, remove competing vendor software, bundle every asset, queue data offline and test across real reboots. Many of the failures we met came from the device, its firmware and its network, and few from Flutter.
What this guide is based on
Our event kiosks include a prize-wheel lead form for WLC and a touchscreen app built for a totem at tbi Grand Auto Expo. The hardware was Android 14 tablets and RK3576 totems with a 2160×3840 portrait panel. The totem we worked on was rooted and had no Google Mobile Services.
Two limits apply. These kiosks were built for events, so we have no long-run field data on panel ageing or heat. On 11 June 2026, the day before the expo opened, that totem moved from the Flutter app to a small native WebView shell that loads a web page full-screen. The Flutter notes below come from building and testing the app on the device before that change, and the device, network and boot notes apply to either kind of app.
Android and embedded Linux are different projects
Everything here is Android. We have not shipped Flutter on an embedded Linux kiosk, so take the Linux column as a contrast and verify it for your own hardware.
| Android kiosk | Embedded Linux kiosk | |
|---|---|---|
| Flutter support | A listed target in Flutter's supported platforms | The table lists Debian and Ubuntu as desktop targets and has no embedded row |
| Who integrates the engine | Flutter's standard Android embedding | You choose or write a custom embedder |
| Boot, display, input | Handled by the vendor's Android image, including its faults | Yours to assemble |
| Main risk | Vendor firmware and preinstalled software | Long-term cost of the custom stack |
Flutter's engine documentation says of custom engine builds: "We do not expect custom engine builds to be long-term sustainable." The same page recommends them only for platforms that are not supported out of the box, "for example in embedded hardware", and describes the embedder API, which has a stable ABI, as a separate route. Decide which of the two your project needs before committing a product to it.
Getting the device to boot into the app
Lock task mode or home app
Android's documented route for kiosks is lock task mode. It hides the Home and Overview buttons and blanks the status bar. "Only apps that have been allowlisted by a device policy controller (DPC) can run" in it, which makes it the right investment for a fleet under management. Screen pinning looks similar, but the person at the device can leave it.
We used the simpler route, suited to a small number of devices we provision on site. Android recognises a home app by the CATEGORY_HOME intent category. We declared it in the manifest, set our activity as the default with cmd package set-home-activity over adb, and confirmed the setting survived a reboot. Android's dedicated-devices cookbook covers doing the same from a device policy controller.
Remove what is already there
The totem came with a vendor player that kept taking focus until we disabled it with pm disable-user, which is reversible. It also came with a factory burn-in app that rebooted the device every three to four minutes. Before debugging your own app on new hardware, list every installed package and look at the recorded boot reason.
Small things that end a session
- The Back button. Hardware Back closed our app until we intercepted it. In Flutter, the PopScope widget with canPop set to false stops the system back gesture from popping the route.
- App state after a relaunch. Our brand selection first lived in memory, so a relaunch reset it. We moved it to local storage.
- Sleep. Keep the screen on from the app. Android's cookbook describes FLAG_KEEP_SCREEN_ON for this, and we shipped a wakelock.
- A hidden operator menu. Settings sat behind a long press and a PIN, so staff could adjust the kiosk without a laptop.
Rendering on a 4K portrait panel
Flutter's performance guide says "each frame must render approximately every 16ms to avoid jank" at 60fps. At the panel's native 2160×3840, our raster times were around 21ms. We rendered at 1080×1920 instead, using wm size 1080x1920, and let the panel upscale. That held 60fps and persisted across reboots.
For a demanding attract loop, our design choice was hardware-decoded video instead of animated widgets.
Physical reach matters as much as pixels on a tall totem. The top of the screen is out of comfortable reach, so everything touchable sat in the band from y 1050 to y 1850 of the 1080×1920 canvas. The upper area was for display only.
Touch input can be wrong at the hardware level
The touch digitizer on the totem was mounted with its axes swapped and mirrored. A rotation setting cannot correct a reflection, so no vendor option fixed it. We measured the mapping with a calibration drag and wrote a small native remapper that grabs the input device and injects corrected coordinates through uinput.
Apps could not get root on that userdebug image, so the remapper starts as an init service at boot. It is a device-level fix, and it stays reversible.
Some kiosk panels have a smaller fault: a constant offset. For those we added an in-app calibration screen with five targets, an offset applied to pointer events in the Flutter binding, and a diagnostic touch test in the operator menu. A drag from corner to corner on day one tells you which of the two problems you have.
Assume the network is intermittent
A font download that broke the taps
Our hardest bug looked like broken buttons. Back and other taps did nothing on the totem. The cause was the google_fonts package trying to download fonts at runtime over a connection that came and went. The failures raised unhandled exceptions on every frame, which cancelled the gesture arena, so taps never completed.
The package README describes runtime fetching as "ideal for development", usable in production to reduce app size, and says matching asset files take priority over HTTP. We bundled the fonts and removed the package. The rule we took from it: a kiosk must be able to draw every frame with the network unplugged.
Two ways to keep leads
| Design | Where we used it | Trade-off |
|---|---|---|
| Local queue with retry, then an API with idempotent writes | Totem app, using Hive and a small backend | Leads survive outages, and you have a backend to run |
| Direct write to a cloud spreadsheet | A short event deployment | No relay to fail during the event, and a credential to protect on every device |
Anything shipped in an APK can be extracted from the device. A credential in the app should reach the one resource it needs and be replaced after the event.
Plan for the boot race as well. The first network call often runs before the network is up, so it needs to fail quietly and retry. Our WebView shell retries every three seconds for this reason.
Remote access
- Use a stable address. The totem's LAN address came from DHCP and changed. An OpenVPN client gives it a fixed VPN address, and remote releases go over that.
- Route only the VPN subnet. The server pushes no default route, so the device keeps its normal internet path.
- Test a real reboot. Android can start an always-on VPN at boot. On our image, arming it mid-session did not connect, and a real reboot did, so test the boot path itself.
- Keep adb inside the tunnel. Network adb gives full control of a device.
- See the screen. A browser-based mirror behind authentication lets someone check the actual display from anywhere.
Verify on the device, with the real artwork
The totem app had 33 passing tests, a clean analyzer and a working release build. A review on the physical device still found four layout bugs: overlapping filters, a keypad row cut off, another overlap and a logo collision in the header. The automated tests did not show them.
The prize wheel taught a similar lesson. Our model assumed one slot more than the printed artwork had, so the mismatch between slot and prize grew as the wheel went round. The fix came from counting the slots on the artwork and checking the mapping on the device. We added a diagnostic mode, enabled with a dart-define, in which each tap forces the next slot and shows its index.
What we have not solved
- A crash watchdog. It was still on the follow-up list for the totem app. For a long-running installation we would put it in the first release.
- Fleet management. We provisioned on site. Larger fleets should look at a device policy controller and managed enrolment.
- Long-run behaviour. We have no data on months of continuous operation.
Checklist
- List installed packages and disable burn-in apps and vendor launchers.
- Choose home app or lock task mode, then confirm it after a cold reboot.
- Intercept Back and persist any state that must survive a relaunch.
- Measure raster time at native resolution before committing to it.
- Place touch targets within reach of a person standing at the device.
- Run a corner-to-corner touch test.
- Bundle fonts and images, then run the whole flow with the network off.
- Queue data locally, and make writes idempotent.
- Give remote access a stable address, and test it after a reboot.
- Do a full visual pass on the real device.
If you need a kiosk like this built and operated, or an existing app kept running, we can help. We also publish flutter_virtual_keyboard, a customizable on-screen keyboard package, on pub.dev.
Frequently asked questions
Can a Flutter app run as an Android kiosk?
Yes. It can be set as the device's home app, or run in lock task mode when a device policy controller manages the device. Flutter does not need special support for either, though you should intercept Back in the app.
Should I use lock task mode or a home app?
Lock task mode is Android's documented kiosk route and suits managed fleets. A home app with competing launchers disabled is simpler for a few devices you provision yourself, and that is what we used.
Does a Flutter kiosk need a rooted device?
The app does not. Our totem was rooted, and that helped with provisioning. One fix needed system-level access: a touch digitizer mounted with mirrored axes, corrected by an init service.
Can Flutter render at 4K on an RK3576 at 60fps?
In our app it could not at native resolution: raster times were around 21ms against a budget of about 16ms. Rendering at 1080×1920 and letting the panel upscale held 60fps. Your result depends on how heavy your interface is.
Does this apply to Flutter on embedded Linux?
Only partly. The advice on offline behaviour, touch testing and verification carries over. Boot, display and engine integration are different problems, and we have not shipped Flutter on an embedded Linux kiosk.
Sources
- Android Developers: Lock task mode
- Android Developers: Dedicated devices cookbook
- Android Developers: VPN and always-on VPN
- Flutter docs: Flutter performance profiling
- Flutter docs: Supported deployment platforms
- Flutter engine docs: Custom Flutter engine embedders
- Flutter API: PopScope class
- pub.dev: google_fonts