AppFlowyRichText constructor
const
AppFlowyRichText({
- Key? key,
- double? cursorHeight,
- double cursorWidth = 2.0,
- double? lineHeight,
- AppFlowyTextSpanDecorator? textSpanDecorator,
- String placeholderText = ' ',
- AppFlowyTextSpanDecorator? placeholderTextSpanDecorator,
- TextDirection textDirection = TextDirection.ltr,
- TextSpanDecoratorForAttribute? textSpanDecoratorForCustomAttributes,
- TextAlign? textAlign,
- Color cursorColor = const Color.fromARGB(255, 0, 0, 0),
- Color selectionColor = const Color.fromARGB(53, 111, 201, 231),
- AppFlowyAutoCompleteTextProvider? autoCompleteTextProvider,
- required SelectableMixin<
StatefulWidget> delegate, - required Node node,
- required EditorState editorState,
Implementation
const AppFlowyRichText({
super.key,
this.cursorHeight,
this.cursorWidth = 2.0,
this.lineHeight,
this.textSpanDecorator,
this.placeholderText = ' ',
this.placeholderTextSpanDecorator,
this.textDirection = TextDirection.ltr,
this.textSpanDecoratorForCustomAttributes,
this.textAlign,
this.cursorColor = const Color.fromARGB(255, 0, 0, 0),
this.selectionColor = const Color.fromARGB(53, 111, 201, 231),
this.autoCompleteTextProvider,
required this.delegate,
required this.node,
required this.editorState,
});