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

button color not working on sl language #2400

Open
1 task done
samih93 opened this issue Nov 26, 2024 · 1 comment
Open
1 task done

button color not working on sl language #2400

samih93 opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@samih93
Copy link

samih93 commented Nov 26, 2024

Is there an existing issue for this?

Flutter Quill version

flutter_quill: ^10.8.5

Steps to reproduce

i see that colorPicker is wrapped by FlutterQuillLocalizationsWidget and this is linked to the local of app , is there a way to pass the local to this colorPicker,
the best solution is to add sl language , i can provide the sl language

Expected results


Actual results

is set the local to English cause Slovenian is not supported,
but if I press on color button an error happens:

The following MissingFlutterQuillLocalizationException was thrown building ColorPickerDialog(dirty, dependencies: [_LocalizationsScope-[GlobalKey#dc061]], state: ColorPickerDialogState#1ff68):
UnimplementedError: FlutterQuillLocalizations instance is required and could not be found. Ensure that you are wrapping the current widget with FlutterQuillLocalizationsWidget or add FlutterQuillLocalizations.delegate to the localizationsDelegates in your App widget (e.,g WidgetsApp, MaterialApp). If you believe this is a bug, consider reporting it.

Additional Context

Screenshots / Video demonstration

Screenshot_1732615080

@samih93 samih93 added the bug Something isn't working label Nov 26, 2024
@ZhuJHua
Copy link

ZhuJHua commented Dec 6, 2024

Simply add FlutterQuillLocalizations.delegate to the localizationsDelegates in your MaterialApp(or others). If your region’s language is not supported, Quill will automatically fall back to English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants