zefyr 1.0.0-dev.2.0
zefyr: ^1.0.0-dev.2.0 copied to clipboard
Clean, minimalistic and collaboration-ready rich text editor for Flutter.
1.0.0-dev.2.0 #
- Fixed: Hide selection handle when the current selection is collapsed on Android (#435).
- Added: Support for text deletion using keyboards Backspace or Delete keys (#431).
- Fixed: Toolbar overflow by wrapping it in SingleChildScrollView (#423).
1.0.0-dev.1.0 #
This is the first development release of the upcoming 1.0.0 version of zefyr package.
Compared to 0.x versions of this package it's an almost complete rewrite and contains many breaking changes, but also comes with many improvements and new features.
This is an early dev release and it is not recommended to use in production environment. There are still many incomplete features as well as known issues that need to be addressed.
Breaking changes:
ZefyrScaffoldwas removed. It is no longer required to wrapZefyrEditorwith it.ZefyrModewas removed. Zefyr now follows the contract of standard Flutter TextField and provides separate fields likeshowCursor,enableInteractiveSelection,readOnlyto control editing features.ZefyrImageDelegatewas removed as well as theimageDelegatefield. There is now newembedBuilderfield which allows to customize embedded objects. By default it is set todefaultZefyrEmbedBuilderwhich 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 useZefyrEditorwithreadOnlyset 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 withZefyrToolbar.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 byZefyrScaffold).ZefyrThemehas been rewritten to simplify theme data. See implementation for more details.
The above is not a comprehensive list but it should highlight all the major changes and help with migration.
What's new:
- Desktop support, including handling of mouse and keyboard inputs, including some keyboard shortcut as well as, hiding selection handles,
- Web support, partial. There is still limitations on the Flutter side, particularly around rendering rich-text and providing text metrics for rich-text.
- Better cursor handling and painting. It now matches the built-in Flutter behavior and style.
- Better selection handling.
- Code blocks now have line numbers (also planned - syntax highlighting)
ZefyrEditor.expandsfield controls whether the editor expands to fill its parent.ZefyrEditor.minHeightandZefyrEditor.maxHeightallow to control the height of the editor.ZefyrEditor.scrollableif set tofalseallows to embed the editor into a custom scrollable layout, e.g. aListView.ZefyrEditr.onLaunchUrlcallback is invoked when the user wants to open a link.
0.11.0 #
- Updated to support Flutter 1.17.0
0.10.0 #
This release contains breaking changes. The entire theming layer of ZefyrEditor has been rewritten. Most notable changes include:
- Removed
selectionColorandcursorColorfromZefyrThemeData. Relying on the FlutterThemeData.textSelectionColorandThemeData.cursorColorinstead. - All attribute styles moved to the new
AttributeThemeclass. indentSizerenamed toindentWidth- Purpose of
BlockThemechanged to specify styles for particular block type (list, quote, code) - Removed
HeadingThemeandStyleTheme - Added new
LineThemeto describe styles of headings and paragraphs
Other changes in this release include:
- Added: Support for Dark Mode
- Changed: Minor tweaks to default theme
- Fixed: ZefyrField decoration when focused appeared as disabled
- Fixed: Caret color for iOS
0.9.1 #
- Added: Support for iOS keyboard appearance. See
ZefyrEditor.keyboardAppearanceandZefyrField.keyboardAppearance - Fixed: Preserve inline style when replacing formatted text from the first character (#201)
- Fixed: Toggling toolbar between two editors (#229)
0.9.0 #
- Feature: toggle inline styles (works for bold and italic)
- Updated to support Flutter 1.12.0
- Upgraded dependencies
- Fixed analyzer issues
0.8.0 #
- Updated to support Flutter 1.9.0 (#154)
0.7.0 #
This release contains breaking changes.
- Breaking change:
ZefyrEditor.enabledfield replaced byZefyrEditor.modewhich can take one of three default values:ZefyrMode.edit: the same asenabled: 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 asenabled: false, read-only.
- Added optional
selectionControlsfield toZefyrEditorandZefyrEditableText. If not provided then by default uses platform-specific implementation. - Added support for "selectAll" action in selection toolbar.
- Breaking change: removed
ZefyrDefaultImageDelegateas well as dependency onimage_pickerplugin. Users are required to provide their own implementation. If image delegate is not provided then image toolbar button is disabled. - Breaking change: added
ZefyrImageDelegate.cameraSourceandZefyrImageDelegate.gallerySourcefields. For users ofimage_pickerplugin these should returnImageSource.cameraandImageSource.galleryrespectively. See documentation on implementing image support for more details.
0.6.1 #
- Relaxed dependency constraint on
image_pickerlibrary to allow latest version. Note that Zefyr 0.7 will stop depending onimage_pickerand introduce some breaking changes, which will be described here when 0.7 is released.
0.6.0 #
- Updated to support Flutter 1.7.8
0.5.0 #
- Updated to support Flutter 1.2
- Experimental: Added non-scrollable
ZefyrViewwidget which allows previewing Notus documents inside layouts using their own scrollables like ListView. - Breaking change: renamed
EditableRichTexttoZefyrRichText. User code is unlikely to be affected unless you've extended Zefyr with custom implementations of block widgets. - Breaking change: renamed
RenderEditableParagraphtoRenderZefyrParagraph. User code is unlikely to be affected unless you've extended Zefyr with custom implementations of block widgets. - Added
ZefyrScopeclass - replaces previously used scope objectsZefyrEditableTextScopeandZefyrEditorScope. Unified all shared resources under one class. - Breaking change: removed
ZefyrEditor.ofandZefyrEditableText.ofstatic methods. UseZefyrScope.ofinstead.
0.4.0 #
- Breaking change: upgraded
image_pickerto^0.5.0andurl_launcherto^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:
0.3.1 #
- Fixed autofocus not being triggered when set to
truefor the first time. - Allow customizing cursor color via ZefyrTheme.
0.3.0 #
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.
- Breaking change:
ZefyrEditorrequires an ancestorZefyrScaffold. - Upgraded to
url_launcherversion 4.0.0. - Exposed
ZefyrEditor.physicsproperty to allow customization ofScrollPhysics. - Added basic
ZefyrFieldwidget with material design decorations.
0.2.0 #
- Breaking change:
ZefyrImageDelegate.createImageProviderreplaced withZefyrImageDelegate.buildImage. - Fixed redundant updates on composing range for Android.
- Added TextCapitalization.sentences
- Added docs for embedding images.
0.1.2 #
- Fixed analysis warnings.
- UX: User taps on padding area around the editor and in empty space inside it now look for the nearest paragraph to move caret to.
- UX: Toggle selection toolbar on double tap instead of refreshing it.
0.1.1 #
- Fixed: Prevent sending excessive value updates to the native side which cause race conditions (#12).
0.1.0 #
- Initial release.