From a96b0d593f36144760e21b27103a6906ec68ec5b Mon Sep 17 00:00:00 2001 From: X Code Date: Mon, 25 Jul 2022 13:02:40 -0700 Subject: [PATCH] Add locale to QuillEditor.basic --- lib/src/widgets/editor.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/widgets/editor.dart b/lib/src/widgets/editor.dart index e5b0916e..5f169788 100644 --- a/lib/src/widgets/editor.dart +++ b/lib/src/widgets/editor.dart @@ -182,6 +182,10 @@ class QuillEditor extends StatefulWidget { required QuillController controller, required bool readOnly, Brightness? keyboardAppearance, + + /// The locale to use for the editor toolbar, defaults to system locale + /// More at https://github.com/singerdmx/flutter-quill#translation + Locale? locale, }) { return QuillEditor( controller: controller, @@ -193,6 +197,7 @@ class QuillEditor extends StatefulWidget { expands: false, padding: EdgeInsets.zero, keyboardAppearance: keyboardAppearance ?? Brightness.light, + locale: locale, ); }