TF-735 Add CodeView type in rich text button
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
|
||||
enum CodeViewState {
|
||||
enabled,
|
||||
disabled
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
enum DropdownMenuFontStatus {
|
||||
open,
|
||||
closed
|
||||
}
|
||||
@@ -10,7 +10,8 @@ enum RichTextStyleType {
|
||||
underline,
|
||||
strikeThrough,
|
||||
textColor,
|
||||
textBackgroundColor;
|
||||
textBackgroundColor,
|
||||
codeView;
|
||||
|
||||
String get commandAction {
|
||||
switch (this) {
|
||||
@@ -43,6 +44,8 @@ enum RichTextStyleType {
|
||||
return imagePaths.icStyleUnderline;
|
||||
case strikeThrough:
|
||||
return imagePaths.icStyleStrikeThrough;
|
||||
case codeView:
|
||||
return imagePaths.icStyleCodeView;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
@@ -73,6 +76,8 @@ enum RichTextStyleType {
|
||||
return AppLocalizations.of(context).formatTextColor;
|
||||
case textBackgroundColor:
|
||||
return AppLocalizations.of(context).formatTextBackgroundColor;
|
||||
case codeView:
|
||||
return AppLocalizations.of(context).codeView;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user