TextEditor class

Instagram like text editor A flutter widget that edit text style and text alignment

You can pass your text style to the widget and then get the edited text style

Inheritance

Constructors

TextEditor({required List<String> fonts, required void onEditCompleted(TextStyle, TextAlign, String), List<Color>? paletteColors, Color? backgroundColor, String text = '', TextStyle? textStyle, TextAlign? textAlingment, double? minFontSize = 1, double? maxFontSize = 100, ValueChanged<TextAlign>? onTextAlignChanged, ValueChanged<TextStyle>? onTextStyleChanged, ValueChanged<String>? onTextChanged, EditorDecoration? decoration})
Create a TextEditor widget

Properties

backgroundColor Color?
Widget's background color
final
decoration EditorDecoration?
Decoration to customize the editor
final
fonts List<String>
Editor's font families
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxFontSize double?
final
minFontSize double?
final
onEditCompleted → void Function(TextStyle, TextAlign, String)
After edit process completed, onEditCompleted callback will be called.
final
onTextAlignChanged ValueChanged<TextAlign>?
onTextAlignChanged will be called after textAlingment prop has changed
final
onTextChanged ValueChanged<String>?
onTextChanged will be called after text prop has changed
final
onTextStyleChanged ValueChanged<TextStyle>?
onTextStyleChanged will be called after textStyle prop has changed
final
paletteColors List<Color>?
Editor's palette colors
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Editor's default text
final
textAlingment TextAlign?
The text alignment
final
textStyle TextStyle?
The text style
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _TextEditorState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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