-
Notifications
You must be signed in to change notification settings - Fork 349
v2.0.0 Migration Guide
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 toHtmlEditorOptions
-
height
anddecoration
have moved toOtherOptions
-
showBottomToolbar
has been removed -
options:
has been renamed tohtmlEditorOptions:
-
toolbar
list has moved toHtmlToolbarOptions
->defaultToolbarButtons
-
-
All plugins except
SummernoteAtMention
have been removed, all exceptAdditionalTextTags
andSummernoteEmoji
are supported natively and enabled by default. UsedefaultToolbarButtons
to disablelistStyles
,caseConverter
,otherFile
, ortextDirection
. -
Toolbar constructors have been renamed:
-
Style
->StyleButtons
-
FontSetting
->FontSettingButtons
-
Font
->FontButtons
-
ColorBar
->ColorButtons
-
MiscFont
has been removed (the buttons are now underFontButtons
) -
Paragraph
->ParagraphButtons
-
Insert
->InsertButtons
-
Misc
->OtherButtons
-
-
Toolbar buttons are now disabled with
true
orfalse
, 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.
- All buttons except one (
-
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!