flutter_message_composer library

Adaptive message composer widgets and payloads for Flutter applications.

Classes

AudioDataContainer
Class that contain the streamed audio data.
ChatInputAttachment
ChatInputAudio
ChatInputMenuAction
ChatInputPillAction
ChatInputSubmission
FlutterMessageComposerAudioRecorderBackend
flutter_recorder backend used by the default composer recorder.
MessageComposer
Adaptive text and audio input with managed and hold-to-record workflows.
MessageComposerAudioPlayer
Default audio preview backend powered by audioplayers.
MessageComposerAudioRecorder
Default recorder backed by the flutter_recorder Flutter plugin.
MessageComposerAudioRecorderBackend
Thin backend seam over flutter_recorder for testing and isolation.
MessageComposerAudioRecorderConfig
Audio capture settings used by MessageComposerAudioRecorder.
MessageComposerController
Controls composer actions without exposing its widget state or audio backend.
MessageComposerEmojiKeyboard
Native emoji input on iOS, Android and macOS, without an app-owned picker.
MessageComposerPlayer
Audio preview contract consumed by MessageComposer.
MessageComposerRecorder
Audio capture contract consumed by the message composer.
MessageComposerRecordingEvent
Typed information about a recording lifecycle transition.
MessageComposerRecordingStartContext
Context available before the composer opens the microphone.
MessageComposerValue
Read-only availability and recording state of an attached composer.

Enums

AndroidInputPreset
Android capture input presets.
ChatInputRecordingStatus
IosInputPreset
iOS capture input presets.
MessageComposerPlaybackState
Playback states used by the recording preview controls.
MessageComposerRecordingCancelReason
Why an in-progress or pending recording was canceled.
MessageComposerRecordingPhase
High-level recording phases exposed by MessageComposerRecordingEvent.
PCMFormat
The PCM format
RecorderChannels
The channels to be used while initializing the player.
RecordingFormat
The format used when recording to a file.
StreamingFormat
The format used when streaming audio data.
WebInputPreset
Web Audio capture input presets for browser-level audio preprocessing.

Typedefs

MessageComposerBeforeStartRecording = Future<void> Function(MessageComposerRecordingStartContext context)
Hook called after microphone permission is granted and before capture starts.
MessageComposerPermissionChecker = Future<bool> Function()
Checks whether microphone capture is allowed.
MessageComposerPlayerFactory = MessageComposerPlayer Function()
Creates an isolated audio preview backend, lazily on the first preview.
MessageComposerRecorderFactory = MessageComposerRecorder Function()
Creates an isolated recorder backend for one MessageComposer instance.
MessageComposerRecordingEventCallback = void Function(MessageComposerRecordingEvent event)
Receives typed recording lifecycle events emitted by the composer.
SilenceCallback = void Function(bool isSilent, double decibel)
Callback when silence state is changed.