From ddc1770e8048b785ceeffff289ca51048f9e8af4 Mon Sep 17 00:00:00 2001 From: Ellet Date: Wed, 10 Jul 2024 15:55:45 +0300 Subject: [PATCH] chore: deprecate customBlocks in DeltaX.fromHtml property --- lib/src/models/documents/delta_x.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/src/models/documents/delta_x.dart b/lib/src/models/documents/delta_x.dart index c2609273..370b8b39 100644 --- a/lib/src/models/documents/delta_x.dart +++ b/lib/src/models/documents/delta_x.dart @@ -34,7 +34,16 @@ class DeltaX { consider using alternatives such as https://pub.dev/packages/flutter_quill_delta_from_html ''', ) - static Delta fromHtml(String htmlText, {List? customBlocks}) { + static Delta fromHtml( + String htmlText, { + @Deprecated( + ''' + The experimental support for HTML conversion has been dropped and will be removed in future releases, + consider using alternatives such as https://pub.dev/packages/flutter_quill_delta_from_html + ''', + ) + List? customBlocks, + }) { final htmlToDelta = HtmlToDelta(customBlocks: customBlocks); return htmlToDelta.convert(htmlText); }