creamy_field 0.3.2
creamy_field: ^0.3.2 copied to clipboard
Rich Text Editing Field & other components with rich text, selection toolbar & syntax highlight support. Useful in Rich text editors.
creamy_field #
Components & widgets with rich text, custom selection toolbar & syntax highlight support. Useful for Rich text editors.
Getting Started #
The main components of this package #
- CreamyTextField
- CreamyEditingController
- Syntax Highlighter
- 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.
Note #
-
Versions before v0.3.2 is not compatible with flutter v1.20.0 and above due to a breaking change of TextInputClient released in flutter v1.20.
-
Use creamy_field v0.3.1 if you're using flutter sdk before 1.20.0
Check screenshots folder for some sample UI screenshots.
Feel free to add features, issues & pull request