Skip to content

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Jun 5, 2019

See the previous versions of this change: #30069 and #33794

This reland version includes minor performance fixes in TextPainter.setPlaceholderDimensions(). We now ignore placeholderDimensions when there are no placeholders in the textspan tree.

@GaryQian GaryQian added a: text input Entering text in a text field or keyboard related problems a: typography Text rendering, possibly libtxt framework flutter/packages/flutter repository. See also f: labels. c: API break Backwards-incompatible API changes c: new feature Nothing broken; request for a new capability labels Jun 5, 2019
/// The [textDirection], if null, defaults to the ambient [Directionality],
/// which in that case must not be null.
const RichText({
RichText({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this was announced already.

Copy link
Contributor Author

@GaryQian GaryQian Jun 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be able to replace instances of RichText with Text.rich to migrate.

@jonahwilliams
Copy link
Contributor

Removing the const from RichText is a breaking change, have you followed the breaking change procedure?

@GaryQian
Copy link
Contributor Author

GaryQian commented Jun 5, 2019

Yes, breaking change procedure has been followed, about 2 weeks ago. #30069 has more history on this change.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

// specified.
void _layoutChildren(BoxConstraints constraints) {
RenderBox child = firstChild;
if (childCount == 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not do this as the first thing in the method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops that's what I meant it to do.

@GaryQian GaryQian merged commit 14414f3 into flutter:master Jun 6, 2019
GaryQian added a commit to GaryQian/flutter that referenced this pull request Jun 6, 2019
GaryQian added a commit that referenced this pull request Jun 7, 2019
tango5614 added a commit to tango5614/flutter that referenced this pull request Jun 7, 2019
* master: (25 commits)
  Increase daemon protocol version for getSupportedPlatforms (flutter#33980)
  skip web test on crazy import (flutter#34017)
  Compatibility pass on flutter/foundation tests for JavaScript compilation. (1) (flutter#33349)
  0602dbb Roll src/third_party/dart 9dcb026b26..6e0d978505 (72 commits) (flutter#34027)
  Add chrome stable to dockerfile and web shard (flutter#33787)
  Codegen an entrypoint for flutter web applications (flutter#33956)
  Revert "Reland "Text inline widgets, TextSpan rework" (flutter#33946)" (flutter#34002)
  Revert "Re-add deprecated method for plugin migration compatibility. (flutter#34006)" (flutter#34022)
  Remove print (flutter#34004)
  Manual roll the engine to land the timing API (flutter#33989)
  Make plugins Swift-first on macOS (flutter#33997)
  Re-add deprecated method for plugin migration compatibility. (flutter#34006)
  make sure version check includes hotfixes (flutter#33459)
  Respond to AndroidView focus events. (flutter#33901)
  Add 'doctor' support for Windows (flutter#33872)
  Add use_frameworks to macOS Podfile template (flutter#33987)
  [Material] Create a themable Range Slider (continuous and discrete) (flutter#31681)
  Updating names to correct versioning convention (flutter#33865)
  Whitelist adb.exe heap corruption exit code. (flutter#33951)
  [flutter_tool] Fix 'q' for Fuchsia profile/debug mode (flutter#33846)
  ...
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
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.

4 participants