QuillEditorConfigurations constructor
const
QuillEditorConfigurations({
- required QuillController controller,
- bool scrollable = true,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- bool autoFocus = false,
- bool expands = false,
- String? placeholder,
- bool? checkBoxReadOnly,
- bool disableClipboard = false,
- TextSelectionThemeData? textSelectionThemeData,
- bool? showCursor,
- bool? paintCursorAboveText,
- bool enableInteractiveSelection = true,
- bool enableSelectionToolbar = true,
- double scrollBottomInset = 0,
- double? minHeight,
- double? maxHeight,
- double? maxContentWidth,
- DefaultStyles? customStyles,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- Brightness keyboardAppearance = Brightness.light,
- ScrollPhysics? scrollPhysics,
- ValueChanged<
String> ? onLaunchUrl, - bool onTapDown(
- TapDownDetails details,
- TextPosition (
- Offset offset
- bool onTapUp(
- TapUpDetails details,
- TextPosition (
- Offset offset
- bool onSingleLongTapStart(
- LongPressStartDetails details,
- TextPosition (
- Offset offset
- bool onSingleLongTapMoveUpdate(
- LongPressMoveUpdateDetails details,
- TextPosition (
- Offset offset
- bool onSingleLongTapEnd(
- LongPressEndDetails details,
- TextPosition (
- Offset offset
- Iterable<
EmbedBuilder> ? embedBuilders, - EmbedBuilder? unknownEmbedBuilder,
- LinkActionPickerDelegate linkActionPickerDelegate = defaultLinkActionPickerDelegate,
- CustomStyleBuilder? customStyleBuilder,
- CustomRecognizerBuilder? customRecognizerBuilder,
- bool floatingCursorDisabled = false,
- TextSelectionControls? textSelectionControls,
- Future<
String?> onImagePaste(- Uint8List imageBytes
- Future<
String?> onGifPaste(- Uint8List imageBytes
- Map<
ShortcutActivator, Intent> ? customShortcuts, - Map<
Type, Action< ? customActions,Intent> > - bool detectWordBoundary = true,
- bool isOnTapOutsideEnabled = true,
- dynamic onTapOutside(
- PointerDownEvent event,
- FocusNode focusNode
- List<
String> customLinkPrefixes = const <String>[], - QuillDialogTheme? dialogTheme,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- QuillEditorContextMenuBuilder? contextMenuBuilder,
- GlobalKey<
EditorState> ? editorKey, - bool requestKeyboardFocusOnCheckListChanged = false,
- QuillEditorElementOptions elementOptions = const QuillEditorElementOptions(),
- QuillEditorBuilder? builder,
- TextMagnifierConfiguration? magnifierConfiguration,
- TextInputAction textInputAction = TextInputAction.newline,
- bool enableScribble = false,
- void onScribbleActivated()?,
- EdgeInsets? scribbleAreaInsets,
- MouseCursor readOnlyMouseCursor = SystemMouseCursors.text,
Important note for the maintainers When editing this class please update the copyWith function too.
Implementation
const QuillEditorConfigurations({
required this.controller,
this.sharedConfigurations = const QuillSharedConfigurations(),
this.scrollable = true,
this.padding = EdgeInsets.zero,
this.autoFocus = false,
this.expands = false,
this.placeholder,
this.checkBoxReadOnly,
this.disableClipboard = false,
this.textSelectionThemeData,
this.showCursor,
this.paintCursorAboveText,
this.enableInteractiveSelection = true,
this.enableSelectionToolbar = true,
this.scrollBottomInset = 0,
this.minHeight,
this.maxHeight,
this.maxContentWidth,
this.customStyles,
this.textCapitalization = TextCapitalization.sentences,
this.keyboardAppearance = Brightness.light,
this.scrollPhysics,
this.onLaunchUrl,
this.onTapDown,
this.onTapUp,
this.onSingleLongTapStart,
this.onSingleLongTapMoveUpdate,
this.onSingleLongTapEnd,
this.embedBuilders,
this.unknownEmbedBuilder,
this.linkActionPickerDelegate = defaultLinkActionPickerDelegate,
this.customStyleBuilder,
this.customRecognizerBuilder,
this.floatingCursorDisabled = false,
this.textSelectionControls,
this.onImagePaste,
this.onGifPaste,
this.customShortcuts,
this.customActions,
this.detectWordBoundary = true,
this.isOnTapOutsideEnabled = true,
this.onTapOutside,
this.customLinkPrefixes = const <String>[],
this.dialogTheme,
this.contentInsertionConfiguration,
this.contextMenuBuilder,
this.editorKey,
this.requestKeyboardFocusOnCheckListChanged = false,
this.elementOptions = const QuillEditorElementOptions(),
this.builder,
this.magnifierConfiguration,
this.textInputAction = TextInputAction.newline,
this.enableScribble = false,
this.onScribbleActivated,
this.scribbleAreaInsets,
this.readOnlyMouseCursor = SystemMouseCursors.text,
});