Re-land "Support Scribble Handwriting" (#96615)#97437
Re-land "Support Scribble Handwriting" (#96615)#97437fluttergithubbot merged 1 commit intoflutter:masterfrom
Conversation
82801ec to
4abcb44
Compare
justinmc
left a comment
There was a problem hiding this comment.
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.getBoxesForSelectionso 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.