Remove signature btn html and add padding to ToolbarRichTextWebBuilder
This commit is contained in:
@@ -64,9 +64,7 @@ class ComposerView extends GetWidget<ComposerController>
|
|||||||
Expanded(child: Column(
|
Expanded(child: Column(
|
||||||
children: [
|
children: [
|
||||||
_buildAttachmentsWidget(context),
|
_buildAttachmentsWidget(context),
|
||||||
ToolbarRichTextWebBuilder(
|
ToolbarRichTextWebBuilder(richTextWebController: controller.richTextWebController),
|
||||||
richTextWebController: controller.richTextWebController,
|
|
||||||
padding: const EdgeInsets.only(left: 20, top: 8, bottom: 8)),
|
|
||||||
buildInlineLoadingView(controller),
|
buildInlineLoadingView(controller),
|
||||||
_buildEditorForm(context)
|
_buildEditorForm(context)
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class ToolbarRichTextWebBuilder extends StatelessWidget with RichTextButtonMixin
|
|||||||
final opacity = codeViewEnabled ? 0.5 : 1.0;
|
final opacity = codeViewEnabled ? 0.5 : 1.0;
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
padding: padding,
|
padding: padding ?? const EdgeInsets.only(left: 20, top: 8, bottom: 8),
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Wrap(
|
child: Wrap(
|
||||||
crossAxisAlignment: WrapCrossAlignment.center,
|
crossAxisAlignment: WrapCrossAlignment.center,
|
||||||
|
|||||||
@@ -232,11 +232,6 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController> {
|
|||||||
color: AppColor.colorContentEmail,
|
color: AppColor.colorContentEmail,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
|
||||||
child: Row(mainAxisAlignment: MainAxisAlignment.end, children: [
|
|
||||||
_buildSignatureButton(context)
|
|
||||||
]),
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
@@ -253,7 +248,7 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController> {
|
|||||||
),
|
),
|
||||||
if (_responsiveUtils.isTablet(context) || _responsiveUtils.isMobile(context))...[
|
if (_responsiveUtils.isTablet(context) || _responsiveUtils.isMobile(context))...[
|
||||||
Obx(() => Padding(
|
Obx(() => Padding(
|
||||||
padding: const EdgeInsets.only(top: 27, bottom: 135),
|
padding: const EdgeInsets.only(top: 27),
|
||||||
child: SetDefaultIdentityCheckboxBuilder(
|
child: SetDefaultIdentityCheckboxBuilder(
|
||||||
imagePaths: _imagePaths,
|
imagePaths: _imagePaths,
|
||||||
isCheck: controller.isDefaultIdentity.value,
|
isCheck: controller.isDefaultIdentity.value,
|
||||||
@@ -361,18 +356,6 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildSignatureButton(BuildContext context) {
|
|
||||||
return buildButtonWrapText(
|
|
||||||
AppLocalizations.of(context).html,
|
|
||||||
textStyle: const TextStyle(
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
fontSize: 14,
|
|
||||||
color: AppColor.colorContentEmail),
|
|
||||||
bgColor: AppColor.emailAddressChipColor,
|
|
||||||
height: 30,
|
|
||||||
radius: 10);
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget _buildSignatureHtmlTemplate(BuildContext context) {
|
Widget _buildSignatureHtmlTemplate(BuildContext context) {
|
||||||
final htmlEditor = BuildUtils.isWeb
|
final htmlEditor = BuildUtils.isWeb
|
||||||
? _buildHtmlEditorWeb(context, controller.contentHtmlEditor ?? '')
|
? _buildHtmlEditorWeb(context, controller.contentHtmlEditor ?? '')
|
||||||
|
|||||||
Reference in New Issue
Block a user