-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and clean up repository (#7)
- Loading branch information
Showing
116 changed files
with
4,424 additions
and
1,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"dart.lineLength": 200, | ||
"[dart]": { | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"editor.rulers": [ | ||
200 | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "always", | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,3 @@ | ||
## [2.2.0] - 2023/01/02 | ||
## [0.1.0] - 2024/04/10 | ||
|
||
* Change the way of adding links to the input. Now, you need to select the text you want to be the label, then click the link button. | ||
A dialog will show where you can enter the link. | ||
|
||
## [2.1.0] - 2022/11/17 | ||
|
||
* Add textStyle property | ||
|
||
## [2.0.4] - 2022/10/28 | ||
|
||
* Do not dispose controller when it is passed as an argument | ||
* Fix RTL selection | ||
* Update library dependencies | ||
* Bind textStyle of the TextField to the bodyText1 ThemeData | ||
|
||
## [2.0.3] - 2022/10/19 | ||
|
||
* Add a node to request focus and get back to field on any action click. | ||
* Add possibility to pass validator as null. | ||
|
||
## [2.0.2] - 2021/10/26 | ||
|
||
* Add a controller parameter | ||
|
||
## [2.0.1] - 2021/07/30 | ||
|
||
* Add support for strikethrough, code, blockquote, separator and images. | ||
* Custom actions supported by the input. | ||
|
||
## [2.0.0] - 2021/04/01 | ||
|
||
* Migrate to null-safety. | ||
|
||
## [1.0.2] - 2021/02/11 | ||
|
||
* Reposition cursor if style applied while no text were selected | ||
|
||
## [1.0.1] - 2020/08/13 | ||
|
||
* Add web support | ||
|
||
## [1.0.0] - 2020/07/07 | ||
|
||
* Add RTL support | ||
|
||
## [0.0.2] - 2020/02/19 | ||
|
||
* Remove unused dependency | ||
* Add more docs | ||
|
||
## [0.0.1] - 2020/02/18 | ||
|
||
* Initialize project | ||
* Removed [MarkdownTextInput] and separated [MarkdownTextInput] into [MarkdownTextInputField] and [MarkdownButtons] widgets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,28 @@ | ||
[![Build Status](https://travis-ci.org/playmoweb/markdown-editable-textinput.svg?branch=master)](https://travis-ci.org/playmoweb/markdown-editable-textinput) | ||
[![pub package](https://img.shields.io/pub/v/markdown_editable_textinput.svg)](https://pub.dev/packages/markdown_editable_textinput) | ||
[![codecov](https://codecov.io/gh/playmoweb/markdown-editable-textinput/branch/master/graph/badge.svg)](https://codecov.io/gh/playmoweb/markdown-editable-textinput) | ||
|
||
# markdown_editable_textinput | ||
|
||
MarkdownEditableTextInput is a TextField Widget that allow you to convert easily what's in the TextField to Markdown. | ||
|
||
## Features | ||
- [x] Convert to Bold, Italic, Strikethrough | ||
- [x] Convert to Code, Quote, Links | ||
- [x] Convert to Heading (H1, H2, H3, H4, H5, H6) and Links | ||
- [x] Support text direction | ||
|
||
## Demo | ||
![](pictures/test_edition.gif) | ||
|
||
### Link by Dialog demo | ||
![](pictures/link_demo.gif) | ||
|
||
## Usage | ||
The color of the MarkdownTextInput is defined by the color set in your Theme : | ||
- primaryColor: Cursor's color | ||
- colorScheme.secondary: 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 | | ||
| List<MarkdownType> 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 | | ||
|
||
### Example | ||
You can see an example of how to use this package [here](https://github.com/playmoweb/markdown-editable-textinput/tree/master/example) | ||
|
||
|
||
# Markdown Editor | ||
|
||
A set of utility widgets that convert Text to Markdown. Extended to support custom Lemmy syntax. | ||
|
||
Provides `MarkdownToolbar` and `MarkdownTextInputField` widgets. | ||
|
||
## Markdown Support | ||
The following markdown syntax is supported by this package: | ||
- Bold: `MarkdownType.bold` | ||
- Italics: `MarkdownType.italic` | ||
- Strikethrough: `MarkdownType.strikethrough` | ||
- Links: `MarkdownType.link` | ||
- Headings: `MarkdownType.title` | ||
- Lists: `MarkdownType.list` | ||
- Code: `MarkdownType.code` | ||
- Block quotes: `MarkdownType.blockquote` | ||
- Dividers: `MarkdownType.separator` | ||
- Images: `MarkdownType.image` | ||
|
||
### Custom Markdown | ||
Custom markdown actions have been added to handle Lemmy specific syntax. This includes | ||
- User format `@[email protected]` | ||
- Community format `[email protected]` | ||
- Spoiler tags | ||
|
||
## Acknowledgements | ||
|
||
Original implementation by [Playmoweb](https://github.com/playmoweb/markdown-editable-textinput). |
Oops, something went wrong.