reactive_extended_text_field library

Classes

BackgroundTextSpan
CommonTextSelectionGestureDetectorBuilder
ExtendedRenderEditablePainter
An interface that paints within a RenderEditable's bounds, above or beneath its text content.
ExtendedTextField
A material design text field.
ExtendedTextFieldState
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
ReactiveExtendedTextField<T>
A ReactiveExtendedTextField that contains a PhoneFormField.
RegExpSpecialText
RegExpSpecialTextSpanBuilder
ScribbleFocusable
Support Scribble Handwriting
ScribblePlaceholder
SelectionOverlay
An object that manages a pair of selection handles.
SpecialInlineSpanBase
create by zmtzawqlp on 2019/7/10
SpecialText
SpecialTextSpan
create by zmtzawqlp on 2019/4/30
SpecialTextSpanBuilder
TextHighlightPainter
TextInputBinaryMessenger
TextInputBinding
void main() { TextInputBinding(); runApp(const MyApp()); }
TextInputFocusNode
The FocusNode to be used in TextInputBindingMixin
TextPainterHelper
WidgetSpanSize

Mixins

TextInputBindingMixin
class YourBinding extends WidgetsFlutterBinding with TextInputBindingMixin,YourBindingMixin { @override // ignore: unnecessary_overrides bool ignoreTextInputShow() { // you can override it base on your case // if NoKeyboardFocusNode is not enough return super.ignoreTextInputShow(); } }

Extensions

StringE on String

Constants

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

Functions

convertKeyboardMoveSelection(InlineSpan text, TextSelection selection) TextSelection
convertKeyboardMoveTextPostion(InlineSpan text, TextPosition? textPosition) TextPosition?
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
Walks this text span and its descendants in pre-order and calls visitor for each span that has text.
handleSpecialTextSpanDelete(TextEditingValue value, TextEditingValue? oldValue, InlineSpan oldTextSpan, TextInputConnection? textInputConnection) TextEditingValue
hasSpecialText(InlineSpan textSpan) bool
hasT<T>(InlineSpan? textSpan) bool
joinChar(InlineSpan value, Accumulator offset, String char) InlineSpan
join char into text
makeSureCaretNotInSpecialText(InlineSpan text, TextPosition textPosition) TextPosition
textSpanToActualText(InlineSpan textSpan) String

Typedefs

InputCounterWidgetBuilder = Widget Function(BuildContext context, {required int currentLength, required bool isFocused, required int? maxLength})
create by zmtzawqlp on 2019/4/22
PaintBackground = bool Function(BackgroundTextSpan backgroundTextSpan, Canvas canvas, Offset offset, TextPainter? painter, Rect rect, {Offset? endOffset, TextPainter? wholeTextPainter})
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
ShouldShowSelectionHandlesCallback = bool Function(SelectionChangedCause? cause, CommonTextSelectionGestureDetectorBuilder selectionGestureDetectorBuilder, TextEditingValue editingValue)
SpecialTextGestureTapCallback = void Function(dynamic parameter)
create by zmtzawqlp on 2019/6/5
TextSelectionChangedHandler = void Function(TextSelection selection, SelectionChangedCause cause)
create by zmtzawqlp on 2019/8/1
TextSelectionGestureDetectorBuilderCallback = CommonTextSelectionGestureDetectorBuilder Function({required BuildContext context, required ExtendedTextSelectionGestureDetectorBuilderDelegate delegate, required Function hideToolbar, required Function? onTap, required Function? requestKeyboard, required Function showToolbar})
return GestureDetectorBuilder for TextSelection