v2.2.0markdown_editable_textinput
一個 TextField 小部件,可讓您輕鬆將 TextField 中的內容轉換為 Markdown。
191喜歡 454近 30 天下載60Pub 分數
平台暫無資料
MarkdownEditableTextInput 是一個 TextField 小部件,可讓您輕鬆將 TextField 中的內容轉換為 Markdown。
以下為英文專案原文快照,最新內容請造訪 GitHub。
MarkdownEditableTextInput is a TextField Widget that allow you to convert easily what's in the TextField to Markdown.
The color of the MarkdownTextInput is defined by the color set in your Theme :
| 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 |
| List actions | [MarkdownType.bold, MarkdownType.italic] | Actions the editor will handle |
| TextEditingController controller | TextEditingController() | Pass your own controller. Can be used to clear the input for example |
| TextStyle textStyle | Theme.of(context).textTheme.bodyText2 | Overrides input text style |
| bool insertLinksByDialog; | true | Choose to use dialog or not to insert link |
| bool insertImageByDialog; | true | Choose to use dialog or not to insert an image |
| bool insertImageByDialog; | true | Choose to use dialog or not to insert an image |
| bool customCancelDialogText; | String? | Text used by dialog for close dialog action |
| bool customSubmitDialogText; | String? | Text used by dialog for validate dialog action |
You can see an example of how to use this package here
依賴清單 4 項
{"sdk":"flutter"}^1.3.2^5.0.1{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗