Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/message input actions #43

Merged
merged 10 commits into from
May 1, 2020

Conversation

imtoori
Copy link
Contributor

@imtoori imtoori commented Apr 28, 2020

MessageInput

  • add actions parameter
  • add textEditingController parameter
  • add actionsLocation (RIGHT or LEFT) parameter
  • add attachmentThumbnailBuilders
  • add editMessageInputBuilder to customize the MessageInput while editing messages
  • expose MessageInputState

Using attachmentThumbnailBuilders it's possible to render custom attachment thumbnails both for standard and custom attachment types

Using MessageInput.of or a GlobalKey<MessageInputState> it's possible to call these methods:

  • sendMessage to send the message
  • pickFile to open the gallery/camera to pick a file
  • addAttachment to add a custom attachment to the message
  • showAttachmentModal to show the modal (that's the behaviour of the attachmentButton)

@imtoori imtoori added the enhancement New feature or request label Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant