EditorStyle.desktop constructor
const
EditorStyle.desktop({
- EdgeInsets? padding,
- Color? cursorColor,
- Color? selectionColor,
- TextStyleConfiguration? textStyleConfiguration,
- TextSpanDecoratorForAttribute? textSpanDecorator,
- String? defaultTextDirection,
- double cursorWidth = 2.0,
- double textScaleFactor = 1.0,
Implementation
const EditorStyle.desktop({
EdgeInsets? padding,
Color? cursorColor,
Color? selectionColor,
TextStyleConfiguration? textStyleConfiguration,
TextSpanDecoratorForAttribute? textSpanDecorator,
this.defaultTextDirection,
this.cursorWidth = 2.0,
this.textScaleFactor = 1.0,
}) : padding = padding ?? const EdgeInsets.symmetric(horizontal: 100),
cursorColor = cursorColor ?? const Color(0xFF00BCF0),
selectionColor =
selectionColor ?? const Color.fromARGB(53, 111, 201, 231),
textStyleConfiguration = textStyleConfiguration ??
const TextStyleConfiguration(
text: TextStyle(fontSize: 16, color: Colors.black),
),
textSpanDecorator =
textSpanDecorator ?? defaultTextSpanDecoratorForAttribute,
magnifierSize = Size.zero,
mobileDragHandleBallSize = Size.zero,
mobileDragHandleWidth = 0.0,
enableHapticFeedbackOnAndroid = false,
dragHandleColor = Colors.transparent;