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

We will get exception in AdaptiveTextSelectionToolbar widget when using custom app that doesn't have DefaultCupertinoLocalizations.delegate #1435

Closed
EchoEllet opened this issue Oct 19, 2023 · 2 comments

Comments

@EchoEllet
Copy link
Collaborator

EchoEllet commented Oct 19, 2023

We're using the AdaptiveTextSelectionToolbar widget and it requires those four delegates in the localizationsDelegates

If you are using a custom app like FluentApp you need to override the localizationsDelegates

with the following:

localizationsDelegates: const [
        DefaultCupertinoLocalizations.delegate,
        DefaultMaterialLocalizations.delegate,
        DefaultWidgetsLocalizations.delegate,
      ],

For example in FluentApp. This should be fixed once Fluent UI Issue #964 is published.

@milindgoel15
Copy link
Contributor

You probably experienced the issue since you were on mac platform and mac uses Cupertino locales (ig). Hence the issue.

Does every platform need to use their own locale system?

@EchoEllet
Copy link
Collaborator Author

You probably experienced the issue since you were on mac platform and mac uses Cupertino locales (ig). Hence the issue.

Does every platform need to use their own locale system?

Yes, and fluent app widgets don't include Cupertino localizations by default, so you have to do this manually

The same error applies to iOS.

Can you go to the discussion and see the latest vote there??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants