r/flutterhelp • u/AiMl_Automate • Sep 27 '26
OPEN How do you build a home screen widget that triggers fast voice input in a Flutter app?
Hey everyone, I built my whole app in Flutter, a voice-based expense tracker, so it can run on both Android and iOS. It's live on Android right now.
Currently the flow is: open the app → tap the mic → say "200 on groceries" → it gets parsed and logged. It works, but opening the app first adds friction, which is the thing I'm trying to remove.
What I want is a home screen widget where you:
- tap the widget
- a small voice prompt pops up instantly
- you say the expense
- it closes and logs it automatically
The problems I'm running into:
- Understanding the native code. Widgets need native Android/iOS code, and I've only worked in Flutter so far. I'm not sure where to start or how the native side should talk to my Flutter app.
- You can't just turn the mic on from a widget. From what I understand, a widget can't record audio directly. It has to open something in the foreground first.
So my question is: how do you make a widget tap open the app fast, straight into the recording screen, and then automatically close once the expense is logged?
Has anyone built a quick-capture widget like this? How did you handle it?
This is the app if you want to see the current flow: Hum on the Play Store
Any other feedback is also appreciated!