maxContentWidthconstraint to ZefyrEditor. When this property is not null the editor's content will only stretch up to the specified value. This does not affect the overall editor width, it will still try to expand horizontally to fill the entire available area. Side effects of setting
ZefyrScaffoldwas removed. It is no longer required to wrap
ZefyrModewas removed. Zefyr now follows the contract of standard Flutter TextField and provides separate fields like
readOnlyto control editing features.
ZefyrImageDelegatewas removed as well as the
imageDelegatefield. There is now new
embedBuilderfield which allows to customize embedded objects. By default it is set to
defaultZefyrEmbedBuilderwhich only supports embeds of type "horizontal rule". To support image embeds this field needs to be supplied with a function which can handle images.
ZefyrViewwas removed. It is now possible to use
readOnlyset to true to achieve view-only exprience.
ZefyrScopewas removed. There is no replacement for this class, it's just not needed anymore.
ZefyrToolbarDelegatewas removed together with
ZefyrToolbar.delegatefield. The toolbar can now be placed anywhere and does not require a scaffold. Users are required to handle visibility of the toolbar though (which was previously handled by
ZefyrThemehas been rewritten to simplify theme data. See implementation for more details.
ZefyrEditor.expandsfield controls whether the editor expands to fill its parent.
ZefyrEditor.maxHeightallow to control the height of the editor.
ZefyrEditor.scrollableif set to
falseallows to embed the editor into a custom scrollable layout, e.g. a
ZefyrEditr.onLaunchUrlcallback is invoked when the user wants to open a link.
ZefyrThemeData. Relying on the Flutter
BlockThemechanged to specify styles for particular block type (list, quote, code)
LineThemeto describe styles of headings and paragraphs
ZefyrEditor.enabledfield replaced by
ZefyrEditor.modewhich can take one of three default values:
ZefyrMode.edit: the same as
enabled: true, all editing controls are available to the user
ZefyrMode.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.
ZefyrEditableText. If not provided then by default uses platform-specific implementation.
ZefyrDefaultImageDelegateas well as dependency on
image_pickerplugin. Users are required to provide their own implementation. If image delegate is not provided then image toolbar button is disabled.
ZefyrImageDelegate.gallerySourcefields. For users of
image_pickerplugin these should return
ImageSource.galleryrespectively. See documentation on implementing image support for more details.
image_pickerlibrary to allow latest version. Note that Zefyr 0.7 will stop depending on
image_pickerand introduce some breaking changes, which will be described here when 0.7 is released.
ZefyrViewwidget which allows previewing Notus documents inside layouts using their own scrollables like ListView.
ZefyrRichText. User code is unlikely to be affected unless you've extended Zefyr with custom implementations of block widgets.
RenderZefyrParagraph. User code is unlikely to be affected unless you've extended Zefyr with custom implementations of block widgets.
ZefyrScopeclass - replaces previously used scope objects
ZefyrEditorScope. Unified all shared resources under one class.
ZefyrEditableText.ofstatic methods. Use
^5.0.0which requires migration to Android X. You must migrate your app in order to use this version. For details on how to migrate see:
truefor the first time.
ZefyrScaffoldwhich allows embedding Zefyr in custom layouts, like forms with multiple input fields.
ZefyrEditorwith an instance of this new widget. See examples and readme for more details.
ZefyrFieldwidget which integrates Zefyr with material design decorations.
ZefyrEditorrequires an ancestor
ZefyrEditor.physicsproperty to allow customization of
ZefyrFieldwidget with material design decorations.