Skip to content

feat: Add configurable chatTextFieldHeightFallback to ChatView#436

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/configure-chattextfieldheight
Draft

feat: Add configurable chatTextFieldHeightFallback to ChatView#436
Copilot wants to merge 2 commits into
mainfrom
copilot/configure-chattextfieldheight

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 20, 2026

Description

The bottom padding of the message list falls back to a hardcoded 10.0 when the chat text field height cannot be measured from layout, causing the last message to be obscured behind the input field in some cases.

This PR exposes a chatTextFieldHeightFallback parameter on ChatView that developers can use to override this fallback without patching the package source.

Changes:

  • ChatView — adds optional chatTextFieldHeightFallback parameter (defaults to existing defaultChatTextFieldHeight = 10.0, no breaking change)
  • ChatViewInheritedWidget — carries the fallback value through the widget tree; updateShouldNotify updated accordingly
  • extensions.dart (textFieldHeight getter) — prefers the widget-tree-provided fallback over the compile-time constant
ChatView(
  chatController: chatController,
  chatViewState: chatViewState,
  chatTextFieldHeightFallback: 130, // prevents last message hiding behind input
  // ...
)

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

Agent-Logs-Url: https://github.com/SimformSolutionsPvtLtd/chatview/sessions/52d306bf-39f4-4ed3-aa9a-c5c140d46e10

Co-authored-by: vatsaltanna-simformsolutions <63704011+vatsaltanna-simformsolutions@users.noreply.github.com>
Copilot AI changed the title [WIP] Add configurable chatTextFieldHeight property feat: Add configurable chatTextFieldHeightFallback to ChatView Apr 20, 2026
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.

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

2 participants