Create a Flutter toolbar editor with a French Locale:
QuillToolbar.simple(
controller: _controller,
configurations: QuillSimpleToolbarConfigurations(
showCodeBlock: false,
showSearchButton: false,
showFontFamily: false,
embedButtons: FlutterQuillEmbeds.toolbarButtons(),
sharedConfigurations: QuillSharedConfigurations(
locale: const Locale('fr'),
),
),
)
Start your quill editor with toolbar
Expected results
The image and video caption button should be both in French.
The imagePicker menu should be in French.
Actual results
Only the image button caption is in French.
The imagePicker menu is in English.
Additional Context
Debug analysis
The context when the class SelectImageSourceDialog is build is in English. There seems to be a disruption between the context given in the toolbar button and the context given to the popup.
builder: (_) => const FlutterQuillLocalizationsWidget(
child: SelectImageSourceDialog(),
),
Not sure exactly why...
Is there an existing issue for this?
Flutter Quill version
10.8.4
Steps to reproduce
Expected results
The image and video caption button should be both in French. The imagePicker menu should be in French.
Actual results
Only the image button caption is in French. The imagePicker menu is in English.
Additional Context
Debug analysis
The context when the class SelectImageSourceDialog is build is in English. There seems to be a disruption between the context given in the toolbar button and the context given to the popup. builder: (_) => const FlutterQuillLocalizationsWidget( child: SelectImageSourceDialog(), ), Not sure exactly why...