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

text-editor-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

GitHub

Download the full project for this post from the following button

This source is fully free for all time

Download as zip

Comments are closed.

You're Offline!

Top