Skip to content

feat: ✨ Added send message on enter button. #305

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rishabhsimformsolutions
Copy link
Contributor

@rishabhsimformsolutions rishabhsimformsolutions commented Jan 7, 2025

Description

Users were only able to send message through the send button in web and desktop apps, so this PR provides the feature for users to send message directly on enter button press and use shift + enter key press for the new line, keeping the existing functionality(send message through the send button) alive. Not only this, users can define onSubmitted function if required.

Screen.Recording.2025-04-04.at.6.40.11.PM.mov

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Closes #303, #263

}

void _onSubmitted(String inputText){
bool isShiftPressed = HardwareKeyboard.instance.isShiftPressed;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be improved

@rishabhsimformsolutions rishabhsimformsolutions force-pushed the fix/issue_303_enter_button_sends_out_message branch from d9904bd to d4ce8d8 Compare April 4, 2025 12:48
- Added unspecified as the default text input action type.
@rishabhsimformsolutions rishabhsimformsolutions force-pushed the fix/issue_303_enter_button_sends_out_message branch from d4ce8d8 to c335b46 Compare April 4, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hit ENTER button on PC keyboard, then send out message immediately
2 participants