An instagram like text editor widget for flutter
Show some ❤️ and star the repo to support the project
TextStyle
object
TextAlign
Add text_editor: ^0.1.3
to your pubspec.yaml
dependencies. And import it:
import 'package:texte_editor/text_editor.dart';
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
Author: mehdizarepour
Source Code: https://github.com/mehdizarepour/text_editor
#flutter #dart #mobile-apps