creamy_field library
This library provides rich text editing field, controllers, syntax highlighting classes, etc.
Classes
- CreamyEditingController
- A controller for an editable text field.
- CreamyMaterialTextSelectionControls
- CreamySyntaxHighlighter
- Highlights a source code's syntax based on language type & theme type.
- CreamyTextSelectionControlsProvider
- A TextSelectionControls provider with actions.
- CreamyTextSelectionToolbarAction
- HorizontalScrollable
- Makes the child horizontally scrollable
- LineCountIndicator
- A horizontal widget with lists of indexes to represent adjacent TextField's line number.
- LineCountIndicatorDecoration
- The decoration which will be applied to LineCountIndicator
- RestorableCreamyEditingController
- SyntaxHighlighter
-
This is the interface that must be implemented by a Syntax highlighter
like CreamySyntaxHighlighter &
DummySyntaxHighlighter
Mixins
- CreamyTextSelectionControls
- Normally, when a TextSelectionControls calls buildToolbar, the UI for the toolbar is painted. By default, this doesn't support additional actions other than copy, cut, select all & paste.
Extensions
- CreamyTextFieldExtensions
- Extension methods on TextEditingController for additional information about the editing text.
Properties
- creamyMaterialTextSelectionControls → TextSelectionControls
-
Text selection controls that follow the Material Design specification with support for additional options
final
Functions
-
getHighlightedThemeStyle(
HighlightedThemeType highlighterThemeType) → Map< String, TextStyle> - From a HighlightedThemeType enum object, this returns that theme's map with theme name as keys and it's respective TextStyle as values.
-
toLanguageName(
LanguageType enumEntry) → String - Describes the language name.
Enums
- HighlightedThemeType
- A theme which will be used in syntax highlighting
- LanguageType
- Language type which the syntax highlighting parser will use.
- TextSelectionControlsType
Typedefs
-
ActionsBuilderCallback
= List<
CreamyTextSelectionToolbarAction> Function(BuildContext context, TextSelectionDelegate delegate, ClipboardStatusNotifier clipboardStatus)