Skip to content

Conversation

@LongCatIsLooong
Copy link
Contributor

Updated the cache invalidation logic. Also tried to avoid using text.toPlainText. This is still very expensive to calculate/send, especially when the user is typing.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. labels Oct 14, 2022
@LongCatIsLooong
Copy link
Contributor Author

/cc @fbcouch if you'd like to review this pull request.

@LongCatIsLooong LongCatIsLooong force-pushed the selection-rects-caching branch from a812a78 to c1a72a7 Compare October 14, 2022 08:06
@LongCatIsLooong LongCatIsLooong force-pushed the selection-rects-caching branch from c1a72a7 to 5087484 Compare October 14, 2022 08:08
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks for cleaning this up. Great idea with the _ScribbleCacheKey class.

]);
log.clear();

await tester.enterText(find.byType(EditableText), 'Text1👨‍👩‍👦');
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call testing extended grapheme clusters 👍

@LongCatIsLooong LongCatIsLooong added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 17, 2022
@auto-submit auto-submit bot merged commit 57e577a into flutter:master Oct 17, 2022
@LongCatIsLooong LongCatIsLooong deleted the selection-rects-caching branch October 17, 2022 19:48
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants