EditorStyle class

The style of the editor.

You can customize the style of the editor by passing the EditorStyle to the AppFlowyEditor.

Constructors

EditorStyle({required EdgeInsets padding, required Color cursorColor, required Color dragHandleColor, required Color selectionColor, required TextStyleConfiguration textStyleConfiguration, required TextSpanDecoratorForAttribute? textSpanDecorator, Size magnifierSize = const Size(72, 48), Size mobileDragHandleBallSize = const Size(8, 8), double mobileDragHandleWidth = 2.0, double cursorWidth = 2.0, String? defaultTextDirection, bool enableHapticFeedbackOnAndroid = true, double textScaleFactor = 1.0})
const
EditorStyle.desktop({EdgeInsets? padding, Color? cursorColor, Color? selectionColor, TextStyleConfiguration? textStyleConfiguration, TextSpanDecoratorForAttribute? textSpanDecorator, String? defaultTextDirection, double cursorWidth = 2.0, double textScaleFactor = 1.0})
const
EditorStyle.mobile({EdgeInsets? padding, Color? cursorColor, Color? dragHandleColor, Color? selectionColor, TextStyleConfiguration? textStyleConfiguration, TextSpanDecoratorForAttribute? textSpanDecorator, String? defaultTextDirection, Size magnifierSize = const Size(72, 48), Size mobileDragHandleBallSize = const Size(8, 8), double mobileDragHandleWidth = 2.0, double cursorWidth = 2.0, bool enableHapticFeedbackOnAndroid = true, double textScaleFactor = 1.0})
const

Properties

cursorColor Color
final
cursorWidth double
final
defaultTextDirection String?
final
dragHandleColor Color
final
enableHapticFeedbackOnAndroid bool
final
hashCode int
The hash code for this object.
no setterinherited
magnifierSize Size
final
mobileDragHandleBallSize Size
final
mobileDragHandleWidth double
final
padding EdgeInsets
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionColor Color
final
textScaleFactor double
final
textSpanDecorator TextSpanDecoratorForAttribute?
final
textStyleConfiguration TextStyleConfiguration
final

Methods

copyWith({EdgeInsets? padding, Color? cursorColor, Color? dragHandleColor, Color? selectionColor, TextStyleConfiguration? textStyleConfiguration, TextSpanDecoratorForAttribute? textSpanDecorator, String? defaultTextDirection, Size? magnifierSize, Size? mobileDragHandleBallSize, double? mobileDragHandleWidth, bool? enableHapticFeedbackOnAndroid, double? cursorWidth, double? textScaleFactor}) EditorStyle
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited