- dependency updates
- added an enum to control what button-types are visible in the editor
- ensured that a
#
is added before every hex-color
- added the style-property
background-color
, that controls thebackgroundColor
attribute of theText
displayed - changed the styling of the widget a bit, removed odd spacings
- added a fake
<sub>
tag that makes the font 1/2 of the default font, will be replaced by the actual subscript feature in the future
- Added error handling. Now, errors can be displayed in the renderer to indicate invalid HTML.
- Fixed linebreaks
- Added selection-persistence again
- Implemented a new parser to convert the raw HTML into a tree
Parser.cleanTagsFromRichtext(String)
andParser.replaceVariables(String, List<RichTextPlaceholder>, String)
are now static methods- Added serialization of a
NodeV2
back to HTML enabling operations on the DOM directly instead of operating on the raw HTML - Added graph analysis steps to not add unneccessary
<span>
tags if there is already a wrapping tag present - Added property-operations. These add a property (currently style="..." to an existing tag, if the selection encloses a node fully)
- Added multi-node operations. If a random section of text is selected, multiple tags are added to the text in order to not break the DOM
- Applied padding of
EditorDecoration
to renderer preview - Added undo-button that gets activated once a Tag has been inserted and undoes the insertion
- Added possibility to define font-family
- Fixed
showHeaderButton
setting
- Added options to provide font-sizes for header tags
- Bumped version of
url_launcher
to version6.1.2
- Added
autofocus
property to the Editor - Various changes in styling
- Added
maxLines
property (to the Editor) to control how large the textfield can grow (null as default for infinite lines) - Refactoring, extracted button row into its own component
- Widget takes all available height now
- Added
maxLines
property (to the Renderer) to control not only the length but also the maximum number of displayed lines - Removed old linebreak system which worked with
Column()
and introduced RichText linebreaks.
- Workaround for a Flutter bug concerning the TextSelection property of TextEditingController
- Workaround for a Flutter bug concerning the TextSelection property of TextEditingController
- Added link support
- Added customizable indicator for overlong text in RichtextRenderer
- Bugfix where some initial empty space was shown
- Extracted Parsing into its own class where context is stored in the class' instance variables
- Fixed a parsing problem on nested strings
- changed style of editor buttons with InkWells for better UX
- changed parsing behaviour to better support linebreaks in tags
- added property to always show editor buttons if desired
- added maxHeight property to the renderer to have a scrolling preview when the content exceeds the desired maximum height
- added property to override the existing color-presets
- added option to pass a TextEditingController to the editor
- extracted logic to replace variables into parser class
- created aggregated import class to import all needed file at once
- added GitHub Link
- fixed the link to the example image
- extracted styling properties into configuration classes
- Added maxLength property
- Initial Release