extended_text_library library Null safety

Classes

BackgroundTextSpan
CommonTextSelectionGestureDetectorBuilder
ExtendedTextRenderBox
create by zmtzawqlp on 2019/8/1 [...]
ExtendedTextSelectionGestureDetectorBuilder
Builds a TextSelectionGestureDetector to wrap an EditableText. [...]
ExtendedTextSelectionGestureDetectorBuilderDelegate
Delegate interface for the ExtendedTextSelectionGestureDetectorBuilder. [...]
ExtendedTextSelectionOverlay
An object that manages a pair of text selection handles. [...]
ExtendedTextSelectionRenderObject
ExtendedRenderEditable ExtendedRenderParagraph [...]
ExtendedWidgetSpan
create by zmtzawqlp on 2019/7/10 [...]
ImageSpan
SpecialInlineSpanBase
create by zmtzawqlp on 2019/7/10
SpecialText
SpecialTextSpan
create by zmtzawqlp on 2019/4/30
SpecialTextSpanBuilder
TextPainterHelper
WidgetSpanSize

Constants

kExtendedMinInteractiveSize → const double
create by zmtzawqlp on 2019/7/31
48.0

Functions

convertTextInputPostionToTextPainterPostion(InlineSpan text, TextPosition textPosition) TextPosition
convertTextInputSelectionToTextPainterSelection(InlineSpan text, TextSelection selection) TextSelection
convertTextPainterPostionToTextInputPostion(InlineSpan text, TextPosition? textPosition, {bool? end}) TextPosition?
convertTextPainterSelectionToTextInputSelection(InlineSpan text, TextSelection selection, {bool selectWord = false}) TextSelection
correctCaretOffset(TextEditingValue value, InlineSpan textSpan, TextInputConnection? textInputConnection, {TextSelection? newSelection}) TextEditingValue
correct caret Offset make sure caret is not in text when caretIn is false
getInlineOffset(InlineSpan inlineSpan) int
getInlineText(InlineSpan inlineSpan) String?
handleSpecialTextSpanDelete(TextEditingValue value, TextEditingValue? oldValue, InlineSpan oldTextSpan, TextInputConnection textInputConnection) TextEditingValue
hasSpecialText(InlineSpan textSpan) bool
hasT<T>(InlineSpan? textSpan) bool
isWhitespace(int codeUnit) bool
makeSureCaretNotInSpecialText(InlineSpan text, TextPosition textPosition) TextPosition
textSpanNestToArray(InlineSpan? textSpan, List<InlineSpan> list) → void
textSpanToActualText(InlineSpan textSpan) String

Typedefs

PaintBackground(BackgroundTextSpan backgroundTextSpan, Canvas canvas, Offset offset, TextPainter? painter, Rect rect, {Offset? endOffset, TextPainter? wholeTextPainter}) bool
if you don't want use default, please return true. endOffset is the text top-right Offfset allTextPainter is the text painter of extended text. painter is current background text painter
SpecialTextGestureTapCallback(dynamic parameter) → void
create by zmtzawqlp on 2019/6/5
TextSelectionChangedHandler(TextSelection selection, SelectionChangedCause cause) → void
create by zmtzawqlp on 2019/8/1 [...]