TF-1877 Use execSummernoteAPI to format text style

(cherry picked from commit 6c81bef9a0cbe391ebf42096dc33ae0d99cf79c8)
This commit is contained in:
dab246
2023-06-30 12:57:10 +07:00
committed by Dat Vu
parent 7f4b0c4b52
commit 32adfb3581
9 changed files with 253 additions and 23 deletions
@@ -114,9 +114,9 @@ class ComposerStyle {
static EdgeInsetsGeometry getEditorPadding(BuildContext context, ResponsiveUtils responsiveUtils) {
if (PlatformInfo.isWeb) {
if (responsiveUtils.isMobile(context)) {
return const EdgeInsetsDirectional.symmetric(horizontal: 16);
return const EdgeInsetsDirectional.symmetric(horizontal: 6);
} else {
return const EdgeInsetsDirectional.only(start: 88, end: 48);
return const EdgeInsetsDirectional.only(start: 78, end: 38);
}
} else {
if (responsiveUtils.isPortraitMobile(context) || responsiveUtils.isLandscapeMobile(context)) {