Slovenian local not supported , A FlutterQuillLocalizations delegate that supports the sl locale was not found.
samih93 opened this issue · comments
samih damaj commented
Is there an existing issue for this?
- I have searched the existing issues
Flutter Quill version
flutter_quill: ^9.3.4
Steps to reproduce
1- if the local Locale('en') works normally
2- if the local Locale('sl') slovenian it return :
The instance of FlutterQuillLocalizations.of(context) is null and it's required , please make sure you wrapping the current widget with FlutterQuillLocalizationsWidget or add FlutterQuillLocalizations.delegate to the localizationsDelegates in your App widget, please consider report this in GitHub as a bug
Expected results
Actual results
Code sample
Code sample
return MaterialApp(
navigatorKey: navigatorKey,
locale: isEnglish ? const Locale('en') : const Locale('sl'),
debugShowCheckedModeBanner: false,
supportedLocales: S.delegate.supportedLocales,
localizationsDelegates: const [
FlutterQuillLocalizations.delegate,
S.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
title: 'Flutter Demo',
theme: ref.read(themeNotifierProvider),
home: const SplashScreen(),
);
and here the widget
FlutterQuillLocalizationsWidget(
child: QuillToolbar.simple(
configurations:
QuillSimpleToolbarConfigurations(
showSubscript: false,
showCodeBlock: false,
showSuperscript: false,
showSearchButton: false,
showDirection: false,
showColorButton: false,
showClearFormat: false,
showInlineCode: false,
showAlignmentButtons: false,
showLink: false,
showBackgroundColorButton: false,
showQuote: false,
showHeaderStyle: false,
controller:
_editorCommentController)),
),
</details>
### Screenshots or Video
<details>
<summary>Screenshots / Video demonstration</summary>
[[Upload media here]
](https://github.com/singerdmx/flutter-quill/assets/78031951/13e54faa-4437-434f-8315-9242ef5e3cb2)
</details>
### Logs
<details><summary>Logs</summary>
```console
[Paste your logs here]