You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are the steps you need to perform to successfully migrate your v1.x.x widget to v2.0.0:
Update the dependency and make sure you are running Flutter v2.0+, Dart v2.12+
Parameters have moved around:
hint, initialText have moved to HtmlEditorOptions
height and decoration have moved to OtherOptions
showBottomToolbar has been removed
options: has been renamed to htmlEditorOptions:
toolbar list has moved to HtmlToolbarOptions -> defaultToolbarButtons
All plugins except SummernoteAtMention have been removed, all except AdditionalTextTags and SummernoteEmoji are supported natively and enabled by default. Use defaultToolbarButtons to disable listStyles, caseConverter, otherFile, or textDirection.
Toolbar constructors have been renamed:
Style -> StyleButtons
FontSetting -> FontSettingButtons
Font -> FontButtons
ColorBar -> ColorButtons
MiscFont has been removed (the buttons are now under FontButtons)
Paragraph -> ParagraphButtons
Insert -> InsertButtons
Misc -> OtherButtons
Toolbar buttons are now disabled with true or false, like so: ParagraphButtons(lineHeight: false, caseConverter: false)
All buttons except one (otherFile) are enabled by default, it is highly recommended to disable some in your implementation to avoid overwhelming users with options.
If you use the plugin on Web, you should use the flag --web-renderer=html for the time being due to Flutter #54027
If you have any further questions, feel free to file an issue!