Skip to content

feat: Add errorWidget support to ImageMessageConfiguration - #457

Merged
vatsaltanna-simformsolutions merged 1 commit into
mainfrom
feature/image-error-builder
Jun 17, 2026
Merged

feat: Add errorWidget support to ImageMessageConfiguration#457
vatsaltanna-simformsolutions merged 1 commit into
mainfrom
feature/image-error-builder

Conversation

@vasu-nageshri-simform

@vasu-nageshri-simform vasu-nageshri-simform commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Description

Allow consumers to pass a custom Widget to display when any image fails to load — network, memory, file, or web. AdaptiveImage now uses errorWidget/errorBuilder on all image variants. Falls back to a built-in icon+text placeholder when unset.
User can pass their own custom error builder :
Simulator Screenshot - iPhone 16e - 2026-06-16 at 13 56 35

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

@vasu-nageshri-simform
vasu-nageshri-simform force-pushed the feature/image-error-builder branch 2 times, most recently from e7e27f7 to 29e6e80 Compare June 16, 2026 08:25
Comment thread CHANGELOG.md Outdated
Comment thread lib/src/widgets/adaptive_image.dart Outdated
Allow consumers to pass a custom Widget to display when any image fails to load — network, memory, file, or web. AdaptiveImage now uses errorWidget/errorBuilder on all image variants. Falls back to a built-in icon+text placeholder when unset.
@vasu-nageshri-simform
vasu-nageshri-simform force-pushed the feature/image-error-builder branch from 29e6e80 to 45e1cb2 Compare June 16, 2026 10:13
@vatsaltanna-simformsolutions
vatsaltanna-simformsolutions merged commit 0693c1f into main Jun 17, 2026
1 check passed
@vatsaltanna-simformsolutions
vatsaltanna-simformsolutions deleted the feature/image-error-builder branch June 17, 2026 05:51
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.

2 participants