From 6848da21ea7d89066e2acae1077abb41e196e4bc Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 20 Jul 2022 17:50:25 +0700 Subject: [PATCH] TF-733 Support strikeThrough style for rich text on web --- assets/images/ic_style_strike_through.svg | 3 +++ .../presentation/controller/rich_text_web_controller.dart | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 assets/images/ic_style_strike_through.svg 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) {