AppFlowyRichText constructor

const AppFlowyRichText({
  1. Key? key,
  2. double? cursorHeight,
  3. double cursorWidth = 2.0,
  4. double? lineHeight,
  5. AppFlowyTextSpanDecorator? textSpanDecorator,
  6. String placeholderText = ' ',
  7. AppFlowyTextSpanDecorator? placeholderTextSpanDecorator,
  8. TextDirection textDirection = TextDirection.ltr,
  9. TextSpanDecoratorForAttribute? textSpanDecoratorForCustomAttributes,
  10. TextAlign? textAlign,
  11. Color cursorColor = const Color.fromARGB(255, 0, 0, 0),
  12. Color selectionColor = const Color.fromARGB(53, 111, 201, 231),
  13. AppFlowyAutoCompleteTextProvider? autoCompleteTextProvider,
  14. required SelectableMixin<StatefulWidget> delegate,
  15. required Node node,
  16. 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,
});