chat_ui/src/message_composer/bloc/bloc library

Barrel export for message composer BLoC layer

Classes

CancelAudioRecording
Cancel audio recording and return to normal mode
ClearComposer
Clear the composer (text, edit mode, reply mode)
ClearComposeText
Internal event: Clear compose text after it's been applied to the text controller
ClearEditMessage
Clear edit mode
ClearReplyMessage
Clear reply mode
ComposeMessageReceived
Internal event: Compose message received from external source
ComposerSetGroup
Set the group to send messages to
ComposerSetUser
Set the user to send messages to
EditTextMessage
Submit the edited text message
EndTyping
End typing indicator
HidePanel
Hide a panel at a specific position
InitializeComposer
Initialize the BLoC with logged-in user
LockBottomPadding
Lock the bottom padding to a specific height (used when showing sticker keyboard) This prevents the layout from jumping when system keyboard closes
MessageComposerBloc
BLoC for managing message composer state and business logic Handles message sending, editing, replying, and typing indicators
MessageComposerEvent
Base class for all message composer events Uses Equatable for proper event comparison in BLoC
MessageComposerState
Immutable state class for MessageComposerBloc Uses Equatable for proper state comparison
MessageEditedExternally
Internal event: Message was edited externally
RequestComposerFocus
Request the composer to focus its text field (opens OS keyboard)
SendCustomMessage
Send a custom message
SendMediaMessage
Send a media message (image, video, audio, file)
SendTextMessage
Send a text message
SetEditMessage
Set a message for editing
SetReplyMessage
Set a message for reply
SetStreamingState
Internal event: Set AI streaming state
ShowPanel
Show a panel at a specific position
StartAudioRecording
Start audio recording mode
StartTyping
Start typing indicator
SubmitAudioRecording
Submit the recorded audio
UnlockBottomPadding
Unlock the bottom padding (return to normal keyboard-based padding)
UpdateComposeText
Update the compose text
UserBlockedStatusChanged
Internal event: User blocked status changed

Enums

MessageComposerStatus
Status enum for message composer operations