This release contains breaking changes. The entire theming layer of ZefyrEditor has been rewritten. Most notable changes include:
selectionColor
and cursorColor
from ZefyrThemeData
. Relying on the Flutter
ThemeData.textSelectionColor
and ThemeData.cursorColor
instead.AttributeTheme
class.indentSize
renamed to indentWidth
BlockTheme
changed to specify styles for particular block type (list, quote, code)HeadingTheme
and StyleTheme
LineTheme
to describe styles of headings and paragraphsOther changes in this release include:
ZefyrEditor.keyboardAppearance
and ZefyrField.keyboardAppearance
This release contains breaking changes.
ZefyrEditor.enabled
field replaced by ZefyrEditor.mode
which can take one of three default values:
ZefyrMode.edit
: the same as enabled: true
, all editing controls are available to the userZefyrMode.select
: user can’t modify text itself, but allowed to select it and optionally apply formatting.ZefyrMode.view
: the same as enabled: false
, read-only.selectionControls
field to ZefyrEditor
and ZefyrEditableText
. If not provided then by default uses platform-specific implementation.ZefyrDefaultImageDelegate
as well as dependency on image_picker
plugin. Users are required to provide their own implementation. If image delegate is not provided then image toolbar button is disabled.ZefyrImageDelegate.cameraSource
and ZefyrImageDelegate.gallerySource
fields. For users of image_picker
plugin these should return ImageSource.camera
and ImageSource.gallery
respectively. See documentation on implementing image support for more details.image_picker
library to allow latest version. Note that
Zefyr 0.7 will stop depending on image_picker
and introduce some breaking changes, which will
be described here when 0.7 is released.ZefyrView
widget which allows previewing Notus documents inside layouts using their own scrollables like ListView.EditableRichText
to ZefyrRichText
. User code is unlikely to be affected unless you’ve extended Zefyr with custom implementations of block widgets.RenderEditableParagraph
to RenderZefyrParagraph
. User code is unlikely to be affected unless you’ve extended Zefyr with custom implementations of block widgets.ZefyrScope
class - replaces previously used scope objects ZefyrEditableTextScope
and ZefyrEditorScope
. Unified all shared resources under one class.ZefyrEditor.of
and ZefyrEditableText.of
static methods. Use ZefyrScope.of
instead.image_picker
to ^0.5.0
and url_launcher
to ^5.0.0
which requires migration to Android X. You must migrate your app in order to use this version. For details on how to migrate see:
true
for the first time.This version introduces new widget ZefyrScaffold
which allows embedding Zefyr in custom layouts, like forms with multiple input fields.
It is now required to always wrap ZefyrEditor
with an instance of this new widget. See examples and readme for more details.
There is also new ZefyrField
widget which integrates Zefyr with material design decorations.
ZefyrEditor
requires an ancestor ZefyrScaffold
.url_launcher
version 4.0.0.ZefyrEditor.physics
property to allow customization of ScrollPhysics
.ZefyrField
widget with material design decorations.ZefyrImageDelegate.createImageProvider
replaced with ZefyrImageDelegate.buildImage
.