diff --git a/lib/src/widgets/editor.dart b/lib/src/widgets/editor.dart index 50e3e6cb..46fafe3b 100644 --- a/lib/src/widgets/editor.dart +++ b/lib/src/widgets/editor.dart @@ -200,6 +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, /// The locale to use for the editor toolbar, defaults to system locale /// More at https://github.com/singerdmx/flutter-quill#translation @@ -209,11 +213,11 @@ class QuillEditor extends StatefulWidget { controller: controller, scrollController: ScrollController(), scrollable: true, - focusNode: FocusNode(), - autoFocus: true, + focusNode: focusNode ?? FocusNode(), + autoFocus: autoFocus, readOnly: readOnly, - expands: false, - padding: EdgeInsets.zero, + expands: expands, + padding: padding, keyboardAppearance: keyboardAppearance ?? Brightness.light, locale: locale, embedBuilders: embedBuilders,