markdown_editable_textinput 0.0.2 markdown_editable_textinput: ^0.0.2 copied to clipboard
A TextField Widget that allow you to convert easily what's in the TextField to Markdown.
markdown_editable_textinput #
MarkdownEditableTextInput is a TextField Widget that allow you to convert easily what's in the TextField to Markdown.
Features #
- Convert to Bold, Italic, Title (h1,h2,h3), List and Link
- Customize textInput colors
Demo #
Usage #
The color of the MarkdownTextInput is defined by the color set in your Theme :
- primaryColor: Cursor's color
- accentColor: MarkdownTextInput's borders
- cardColor: Background color of MarkdownTextInput
Attributes #
Attributes | Example Value | Description |
---|---|---|
Function onTextChanged | Callback used to retrieve the text in parent's Widget | |
String initialValue | "Lorem Ipsum" | Display an initial value in MarkdownTextInput's field |
Function validators | Add validators to the MarkdownTextInput | |
String label | "Description" | Display a label in MarkdownTextInput |
Example #
You can see an example of how to use this package here