-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Re-land "Support Scribble Handwriting" (#96615) #97437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
82801ec
to
4abcb44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thanks for the diff of the change to fix the tests.
@LongCatIsLooong @justinmc Think we can try landing this again? |
Looks like the build succeeded for this 👍 . Let's continue to keep an eye out and make sure that nothing is broken internally by these changes. |
Our benchmarks that monitor web deployment sizes saw a very small increase due to this feature, but I imagine that is to be expected and within reason for this feature? |
I was not expecting a size increase from this PR (or the engine PR), but maybe I've forgotten something that @LongCatIsLooong or @fbcouch would know? Each PR is only +~1,200 lines. Looking at the code, I see that this PR is using |
The increase is around 12kb uncompressed or 4kb compressed which is around .4% in each case. |
Did you mean kb? I wouldn't expect this to increase the size of any APK by 12mb even if it is the |
Sorry, I think you're right. I'll edit my comment. |
Yeah looks like the characters package itself defined a relatively large const string here: https://github.com/dart-lang/characters/blob/master/lib/src/grapheme_clusters/table.dart. If this becomes part of the binary then I wouldn't be too surprised that there's a 4kb increase. We'll probably need to use that library in more places in the future so it's just a matter of time for the size increase to happen. |
The regression has been triaged. Thanks all! |
Ah got it, thanks! |
Reverts #97405
@LongCatIsLooong @justinmc
Fixes #61278
Original PR #75472
Migration Guide: https://github.com/flutter/website/blob/main/src/release/breaking-changes/scribble-text-input-client.md
It looks like the migration to SkParagraph very slightly changed the results of
renderEditable.getBoxesForSelection
so that placeholders are now included, but have an empty list. Here's the change to accommodate the difference:Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.