From d75b2e0d38e40ea74eb8ee4cf4b7e75cbf48a2e9 Mon Sep 17 00:00:00 2001 From: Mounir Bouaiche Date: Thu, 3 Aug 2023 12:52:37 +0100 Subject: [PATCH] Add default attribute to basic factory definition --- lib/src/widgets/editor.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/src/widgets/editor.dart b/lib/src/widgets/editor.dart index 50e3e6cb..04dfc820 100644 --- a/lib/src/widgets/editor.dart +++ b/lib/src/widgets/editor.dart @@ -200,7 +200,10 @@ class QuillEditor extends StatefulWidget { required bool readOnly, Brightness? keyboardAppearance, Iterable? embedBuilders, - + EdgeInsetsGeometry padding = EdgeInsets.zero, + bool autoFocus = true, + bool expands = false, + FocusNode focusNode = FocusNode(), /// The locale to use for the editor toolbar, defaults to system locale /// More at https://github.com/singerdmx/flutter-quill#translation Locale? locale, @@ -209,11 +212,11 @@ class QuillEditor extends StatefulWidget { controller: controller, scrollController: ScrollController(), scrollable: true, - focusNode: FocusNode(), - autoFocus: true, + focusNode: focusNode, + autoFocus: autoFocus, readOnly: readOnly, - expands: false, - padding: EdgeInsets.zero, + expands: expands, + padding: padding, keyboardAppearance: keyboardAppearance ?? Brightness.light, locale: locale, embedBuilders: embedBuilders,