Skip to content

feat: Add backgroundImageFit and backgroundImageRepeat to ChatBackgroundConfiguration#437

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-repeatable-background-image
Draft

feat: Add backgroundImageFit and backgroundImageRepeat to ChatBackgroundConfiguration#437
Copilot wants to merge 2 commits intomainfrom
copilot/add-repeatable-background-image

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 20, 2026

Description

ChatBackgroundConfiguration.backgroundImage was hardcoded to BoxFit.fill with no repeat support, making it impossible to tile pattern images (e.g. Telegram-style repeating symbol backgrounds) or use other fit modes.

Adds two optional parameters to ChatBackgroundConfiguration:

  • backgroundImageFit (BoxFit?) — how the image is inscribed into the container. Defaults to BoxFit.fill (no behavior change).
  • backgroundImageRepeat (ImageRepeat?) — how the image tiles. Defaults to ImageRepeat.noRepeat (no behavior change).
ChatBackgroundConfiguration(
  backgroundImage: 'assets/images/pattern.png',
  backgroundImageFit: BoxFit.none,
  backgroundImageRepeat: ImageRepeat.repeat,
)

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 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

…figuration

Agent-Logs-Url: https://github.com/SimformSolutionsPvtLtd/chatview/sessions/80e36045-6137-4da2-b657-5912d6d6082e

Co-authored-by: vatsaltanna-simformsolutions <63704011+vatsaltanna-simformsolutions@users.noreply.github.com>
Copilot AI changed the title [WIP] Add configuration for repeatable background image feat: Add backgroundImageFit and backgroundImageRepeat to ChatBackgroundConfiguration 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.

Repeatable background image

2 participants