RenderFluentFragment constructor
RenderFluentFragment({})
Implementation
RenderFluentFragment({
required super.node,
required int anchorOffset,
required int focusOffset,
required TextDirection textDirection,
TextStyle? style,
Color? cursorColor,
Color? selectionColor,
}) :
_painter = TextPainter(
text: TextSpan(
text: (node as Fragment).text,
style: style,
),
textDirection: textDirection,
textAlign: TextAlign.left,
),
_anchorOffset = anchorOffset,
_focusOffset = focusOffset,
_cursorColor = cursorColor ?? const Color(0xFF2196F3),
_selectionColor = selectionColor ?? const Color(0xFF64B5F6);