singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.6k stars 840 forks source link

flutter_quill_extensions select image dialog Localizations not working~ #2102

Closed JWAutumn closed 3 months ago

JWAutumn commented 3 months ago

Is there an existing issue for this?

The question

here is the code:

return Column(
      children: [
        QuillToolbar.simple(
          configurations: QuillSimpleToolbarConfigurations(
              controller: controller.quillController,
              embedButtons:
                  FlutterQuillEmbeds.toolbarButtons(videoButtonOptions: null),
              sharedConfigurations:
                  const QuillSharedConfigurations(locale: Locale('zh')),
              toolbarIconAlignment: WrapAlignment.start,
              sectionDividerSpace: 0,
              showSearchButton: false,
              showFontFamily: false,
              showInlineCode: false,
              showCodeBlock: false,
              showAlignmentButtons: true,
              showJustifyAlignment: false,
              showSuperscript: false,
              showSubscript: false,
             ),
        ),
        QuillEditor.basic(
          configurations: QuillEditorConfigurations(
            controller: controller.quillController,
            sharedConfigurations:
                const QuillSharedConfigurations(locale: Locale('zh')),
            embedBuilders: FlutterQuillEmbeds.editorBuilders(),
            padding: const EdgeInsets.all(10),
            maxHeight: 500.w,
            minHeight: 300.w,
          ),
        ),
      ],
    );
  }

QuillToolbar's Localizations is working

but select image dialog, not working, screenshot here 截屏 2024-08-13 02 46 36 Is there something wrong with my configuration?