add rich text style strike through

This commit is contained in:
Liz Bui
2022-07-21 14:50:29 +07:00
committed by Dat H. Pham
parent e6f1ced4cd
commit 75133f05f2
5 changed files with 23 additions and 1 deletions
@@ -4,7 +4,8 @@ import 'package:core/presentation/resources/image_paths.dart';
enum RichTextStyleType {
bold,
italic,
underline;
underline,
strikeThrough;
String get commandAction {
switch (this) {
@@ -14,6 +15,8 @@ enum RichTextStyleType {
return 'italic';
case underline:
return 'underline';
case strikeThrough:
return 'strikeThrough';
default:
return '';
}
@@ -27,6 +30,8 @@ enum RichTextStyleType {
return imagePaths.icStyleItalic;
case underline:
return imagePaths.icStyleUnderline;
case strikeThrough:
return imagePaths.icStyleStrikeThrough;
default:
return '';
}