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

Send on Enter doesn't work when inputMaxLines is set in InputOptions #113

Open
KiraKami-dev opened this issue Oct 9, 2024 · 0 comments
Open

Comments

@KiraKami-dev
Copy link

I would like to achieve the following behavior: when the user reaches the end of the text field, the text should wrap to the next line. For this to work, I need to set inputMaxLines to a specific number and sendOnEnter to false in InputOptions.

InputOptions(
  inputMaxLines: 5,
  sendOnEnter: true,
  textInputAction: TextInputAction.send,
)


However, this setup breaks when sendOnEnter is set to true. In this case, instead of wrapping to the next line, the text continues in a straight line and moves horizontally off the screen.

It would be great to know if this is a bug or an intended behavior. Ideally, I'd like to be able to both:

  • Use sendOnEnter to allow message sending with the Enter key.
  • Have the text wrap to the next line as the user types.

Could you confirm if this is the expected behavior or if there is a potential fix for this?

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

No branches or pull requests

1 participant