Repository navigation
Conversation
StreamMessageText renders `` as a link labelled with the alt text (or the address, shortened) instead of loading it. The new `showImage` predicate decides which http(s) images are shown as images; `imageBuilder` builds only those, defaulting to StreamNetworkImage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…round Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of FLU-1375
What
StreamMessageTextshows a markdown image () as a link to the image, labelled with its alt text (or its address, shortened past 48 characters), instead of loading it. Tapping it goes throughonTapLinklike any other link.showImage(StreamMarkdownImagePredicate) decides which images are shown as images. It receives aStreamMarkdownImage(uri,alt,title) and is only asked abouthttp/httpsimages; other schemes always stay links.imageBuildernow builds only the imagesshowImageallows. Without one, allowed images render asStreamNetworkImage.imageBuilder. The example image URL, which now returns 403, is replaced.Verified
imageBuildernot called withoutshowImage, mixed allowed/linked hosts, the values passed toshowImage, non-http(s) schemes staying links, and theStreamNetworkImagedefault.flutter test --exclude-tags goldenforstream_core_flutter(781 tests),dart analyze --fatal-infos,dart format,melos run check:barrels.🤖 Generated with Claude Code