QuillEditor constructor
const
QuillEditor({
- required QuillController controller,
- required FocusNode focusNode,
- required ScrollController scrollController,
- required bool scrollable,
- required EdgeInsetsGeometry padding,
- required bool autoFocus,
- required bool readOnly,
- required bool expands,
- bool? showCursor,
- bool? paintCursorAboveText,
- String? placeholder,
- 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,
- bool floatingCursorDisabled = false,
- TextSelectionControls? textSelectionControls,
- Future<
String?> onImagePaste(- Uint8List imageBytes
- Map<
LogicalKeySet, Intent> ? customShortcuts, - Map<
Type, Action< ? customActions,Intent> > - bool enableUnfocusOnTapOutside = true,
- List<
String> customLinkPrefixes = const <String>[], - Color? cursorColor,
- Key? key,
Implementation
const QuillEditor(
{required this.controller,
required this.focusNode,
required this.scrollController,
required this.scrollable,
required this.padding,
required this.autoFocus,
required this.readOnly,
required this.expands,
this.showCursor,
this.paintCursorAboveText,
this.placeholder,
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.floatingCursorDisabled = false,
this.textSelectionControls,
this.onImagePaste,
this.customShortcuts,
this.customActions,
this.enableUnfocusOnTapOutside = true,
this.customLinkPrefixes = const <String>[],
this.cursorColor,
Key? key})
: super(key: key);