Skip to content

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

@KiraKami-dev

Description

@KiraKami-dev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions