Components & widgets with rich text, custom selection toolbar & syntax highlight support. Useful for Rich text editors.

Getting Started

The main components of this package:

  1. CreamyTextField
  2. CreamyEditingController
  3. Syntax Highlighter
  4. creamyTextSelectionControls

The CreamyTextField is a text widget similar to Flutter's TextField widget. However, unlike a regular TextField the widget supports a syntax highlighter, line indicator, selection toolbar actions, custom text selection toolbar support, ability to horizontally scroll and a controller which provides more description about a text.

You can also use a limited support for syntax highlighting of many programming languages & themes using CreamySyntaxHighlighter.

Since the text field itself is independent of the syntax highlighting rules, the same text field can be used for any other programming or markup langugage. Only the syntax highlighter implementation needs to be created separately for each new programming language.

Check screenshots folder for some sample UI screenshots.

Feel free to add features, issues & pull request