diff --git a/assets/images/ic_style_strike_through.svg b/assets/images/ic_style_strike_through.svg new file mode 100644 index 000000000..f980e2bbe --- /dev/null +++ b/assets/images/ic_style_strike_through.svg @@ -0,0 +1,3 @@ + + + diff --git a/lib/features/composer/presentation/controller/rich_text_web_controller.dart b/lib/features/composer/presentation/controller/rich_text_web_controller.dart index 2759f6ed4..c67cea735 100644 --- a/lib/features/composer/presentation/controller/rich_text_web_controller.dart +++ b/lib/features/composer/presentation/controller/rich_text_web_controller.dart @@ -31,6 +31,10 @@ class RichTextWebController extends GetxController { if (settings.isUnderline) { listTextStyleApply.add(RichTextStyleType.underline); } + + if (settings.isStrikethrough) { + listTextStyleApply.add(RichTextStyleType.strikeThrough); + } } void applyRichTextStyle(RichTextStyleType textStyleType) {