Skip to content
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

Expose the characters package to Flutter users for better unicode handling #55593

Closed
InMatrix opened this issue Apr 24, 2020 · 2 comments · Fixed by #59620
Closed

Expose the characters package to Flutter users for better unicode handling #55593

InMatrix opened this issue Apr 24, 2020 · 2 comments · Fixed by #59620
Assignees
Labels
framework flutter/packages/flutter repository. See also f: labels. from: study Reported in a UX study

Comments

@InMatrix
Copy link

InMatrix commented Apr 24, 2020

Use case

The characters package was recently introduced to address Dart String's limitations of manipulating extended grapheme clusters (dart-lang/language#34). However, it requires the user to get out of their way to look for it and add it to their Flutter projects. This barrier is likely to cause continued use of the String API in cases where the characters package ought to be used to avoid breaking emojis and non-English text.

Proposal

As part of a larger plan to make characters more readily available to writers of text manipulation code, the Flutter framework can export the characters package once it has integrated it into its internal implementation as described in the TextField Characters Proposal. The user-observable effect is that the extension characters will become visible when the user does an autocomplete on a String object in their Flutter project.

Alternatively, the Flutter starter app template can always import the characters package. The downside is that the package will only be made available within main.dart unless the user imports it in other files of their project.

Cc: @justinmc

@InMatrix InMatrix added framework flutter/packages/flutter repository. See also f: labels. from: study Reported in a UX study labels Apr 24, 2020
@InMatrix InMatrix added this to Action identified but unscheduled in UX Research Results Apr 24, 2020
@justinmc
Copy link
Contributor

The characters package has been added to Flutter in #59267 and will be used internally in #53381. However, it won't be available to users without installing it in their app as usual. I'll take a look at exporting it from Flutter and see what that would entail.

@justinmc justinmc self-assigned this Jun 16, 2020
@InMatrix InMatrix moved this from Action identified but unscheduled to Fixed in UX Research Results Nov 23, 2020
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
framework flutter/packages/flutter repository. See also f: labels. from: study Reported in a UX study
Projects
Development

Successfully merging a pull request may close this issue.

2 participants