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

Slovenian local not supported , A FlutterQuillLocalizations delegate that supports the sl locale was not found. #1856

Open
1 task done
samih93 opened this issue May 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@samih93
Copy link

samih93 commented May 10, 2024

Is there an existing issue for this?

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]
@samih93 samih93 added the bug Something isn't working label May 10, 2024
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

1 participant