Skip to content

MarkdownEditableTextInput is a TextField Widget that allow you to convert easily what's in the TextField to Markdown.

License

Notifications You must be signed in to change notification settings

w4ll3/markdown-editable-textinput

 
 

Repository files navigation

Build Status pub package codecov

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
  • Support text direction

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
TextDirection textDirection TextDirection.rtl Change text direction
int maxLines 3 The maximum of lines that can be display in the input

Example

You can see an example of how to use this package here

About

MarkdownEditableTextInput is a TextField Widget that allow you to convert easily what's in the TextField to Markdown.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 88.7%
  • HTML 6.2%
  • Kotlin 2.2%
  • Swift 1.7%
  • Other 1.2%