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.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
.