Skip to content

Conversation

@justinmc
Copy link
Contributor

Description

We recently landed support for Dart's characters package in #59267. In order to encourage developers to use it in their own projects, what if we export it as a part of Flutter?

Previously, users that wanted to properly handle emojis in Flutter had to install and import the characters package before they could do that. With this PR, they would automatically have access to string.characters wherever they're using Flutter. This makes the barrier much lower for properly handling complex characters.

Related Issues

Closes #55593

Tests

I tested that the characters package is available and works without importing/installing it.

Breaking Change

None

@justinmc justinmc requested review from HansMuller and InMatrix June 17, 2020 00:08
@justinmc justinmc self-assigned this Jun 17, 2020
@fluttergithubbot fluttergithubbot added the framework flutter/packages/flutter repository. See also f: labels. label Jun 17, 2020
library widgets;

export 'package:vector_math/vector_math_64.dart' show Matrix4;
export 'package:characters/characters.dart';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a better place to export this?

Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like the best option in lib/*.dart

@InMatrix InMatrix requested a review from mit-mit June 17, 2020 00:15
@mit-mit
Copy link
Member

mit-mit commented Jun 17, 2020

Exporting this lgtm from a Dart PoV!

Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

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

LGTM

library widgets;

export 'package:vector_math/vector_math_64.dart' show Matrix4;
export 'package:characters/characters.dart';
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like the best option in lib/*.dart

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

@justinmc
Copy link
Contributor Author

I'm holding off on merging this PR while I fix some logistical problems that caused #53381 to be reverted.

@flutter-github-sync
Copy link

Google testing failed...

@fluttergithubbot fluttergithubbot merged commit 766e0fa into flutter:master Jun 24, 2020
@justinmc justinmc deleted the characters-export branch June 24, 2020 00:55
@justinmc
Copy link
Contributor Author

This or #59778 appears to have broken google3 despite my CL to add characters to google3. I must be missing some step.

vasilich6107 added a commit to artflutter/whatsup_flutter_june2020 that referenced this pull request Jul 4, 2020
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose the characters package to Flutter users for better unicode handling

7 participants