Speech Input Widget
Component Detail
User Interface
medium complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Composable overlay widget that wraps any Flutter TextEditingController to enable speech dictation in-place. Renders a microphone icon inline within text fields that opt in, and injects recognized transcript text directly into the controller for user review and editing before submission.
speech-input-widget
Responsibilities
- Wrap opt-in text fields with microphone trigger affordance
- Inject recognized transcript into the bound TextEditingController
- Manage widget lifecycle and cleanup of speech session
Interfaces
SpeechInputWidget({required TextEditingController controller, Widget? child})
injectText(String transcript)
clearInjectedText()
isSpeechAvailable()
onTranscriptChanged(String text)
onSessionComplete(String finalText)
onError(SpeechError error)