Add default attribute to basic factory definition

pull/1335/head
Mounir Bouaiche 2 years ago committed by GitHub
parent 77eb614d5c
commit d75b2e0d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      lib/src/widgets/editor.dart

@ -200,7 +200,10 @@ class QuillEditor extends StatefulWidget {
required bool readOnly, required bool readOnly,
Brightness? keyboardAppearance, Brightness? keyboardAppearance,
Iterable<EmbedBuilder>? embedBuilders, Iterable<EmbedBuilder>? 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 /// The locale to use for the editor toolbar, defaults to system locale
/// More at https://github.com/singerdmx/flutter-quill#translation /// More at https://github.com/singerdmx/flutter-quill#translation
Locale? locale, Locale? locale,
@ -209,11 +212,11 @@ class QuillEditor extends StatefulWidget {
controller: controller, controller: controller,
scrollController: ScrollController(), scrollController: ScrollController(),
scrollable: true, scrollable: true,
focusNode: FocusNode(), focusNode: focusNode,
autoFocus: true, autoFocus: autoFocus,
readOnly: readOnly, readOnly: readOnly,
expands: false, expands: expands,
padding: EdgeInsets.zero, padding: padding,
keyboardAppearance: keyboardAppearance ?? Brightness.light, keyboardAppearance: keyboardAppearance ?? Brightness.light,
locale: locale, locale: locale,
embedBuilders: embedBuilders, embedBuilders: embedBuilders,

Loading…
Cancel
Save