text editor
an instagram like text editor flutter widget that helps you to change your text style.
features
- edit
textstyle
object- font color
- font family
- font size
- edit
textalign
screenshot
installation
add text_editor: ^0.1.3
to your pubspec.yaml
dependencies. and import it:
import 'package:texte_editor/text_editor.dart';
how to use
simply create a texteditor
widget, and pass the required params:
texteditor(
fonts: fonts,
text: text,
textstyle: textstyle,
textalingment: textalign,
oneditcompleted: (style, align, text) {
setstate(() {
_text = text;
_textstyle = style;
_textalign = align;
});
},
)
for more information see examples
Comments are closed.