Skip to content

Last message hidden behind input field – need configurable chatTextFieldHeight instead of modifying package source #433

@torretorich

Description

@torretorich

Is your feature request related to a problem? Please describe.
Yes. In chatview 2.4.0, the last chat message sometimes gets hidden behind the chat text field. The fallback height for chatTextFieldHeight is set to 10, which causes the list bottom spacing to be too small in some cases. Because of this, the last message is not fully visible.

Describe the solution you'd like
It would be helpful if the fallback value for chatTextFieldHeight (currently ?? 10) could be configurable through a property in the ChatView widget. This would allow developers to adjust the bottom spacing without modifying the package source.

Describe alternatives you've considered
Currently, the only workaround is modifying the package file inside .pub-cache:
chatview-2.4.0/lib/src/widgets/chat_groupedlist_widget.dart

Changing:

?? 10

to

?? 130

This fixes the issue, but it is not ideal because it gets overridden whenever dependencies are reinstalled or updated.

Additional context
If a property like chatTextFieldHeightFallback or similar could be exposed in the widget configuration, it would allow developers to control this behavior without modifying the package source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions