Skip to content

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Jun 3, 2019


COPY OF #30069
New branch to fix versioning issues. See old PR for comments and history


This PR implements the capability of embedding widgets inline into paragraphs.

New TextSpan inheritance structure is the following:

InlineSpan --> TextSpan
         |
         ----> PlaceholderSpan ---> WidgetSpan

Wrap widgets to embed in WidgetSpan(widget: <yourwidgethere>)

The TextSpan changes make this a breaking change, although existing code passing <TextSpan>[] into RichText or TextPainter should still work as expected. Only code directly modifying a InlineSpan tree will be affected.

Fix/Addition for #2022

Dependent on the engine/LibTxt side PR: flutter/engine#8207

@goderbauer goderbauer added the framework flutter/packages/flutter repository. See also f: labels. label Jun 3, 2019
@GaryQian
Copy link
Contributor Author

GaryQian commented Jun 3, 2019

The original PR (#30069) has LGTM

GaryQian added a commit to flutter/goldens that referenced this pull request Jun 4, 2019
@goderbauer
Copy link
Member

Can you close the old PR if you don't need it anymore and tag this PR with all the tags that were present on the old one?

@GaryQian GaryQian added a: text input Entering text in a text field or keyboard related problems a: typography Text rendering, possibly libtxt c: API break Backwards-incompatible API changes c: new feature Nothing broken; request for a new capability labels Jun 4, 2019
@GaryQian
Copy link
Contributor Author

GaryQian commented Jun 4, 2019

@fkorotkov Do you know anything about otherwise similar macos runs taking over twice as long and causing timeouts vs similar runs finishing cleanly? For example, see https://cirrus-ci.com/task/4851206602620928 vs https://cirrus-ci.com/task/5571162709426176

@GaryQian GaryQian merged commit 86862c1 into flutter:master Jun 4, 2019
@fkorotkov
Copy link
Contributor

@GaryQian don't recall seeing such behaviour. 🤔Do you know if dart can output test reports with test duration? Might be helpful to add such reports as artifacts of tasks for troubleshooting similar issues.

@jonahwilliams
Copy link
Contributor

cc @GaryQian , the mac luci bot started failing with this PR. I think we should roll it back to verify if this is what pushed it over the edge.

@GaryQian
Copy link
Contributor Author

GaryQian commented Jun 5, 2019

Yeah, ill roll this back for now. It looks like flutter_gallery accessibility_test.dart reordable_list_demo frequently times out with this patch.

GaryQian added a commit that referenced this pull request Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: text input Entering text in a text field or keyboard related problems a: typography Text rendering, possibly libtxt c: API break Backwards-incompatible API changes c: new feature Nothing broken; request for a new capability framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants