diff --git a/lib/features/composer/presentation/composer_controller.dart b/lib/features/composer/presentation/composer_controller.dart index ea36560bc..67eebe7fc 100644 --- a/lib/features/composer/presentation/composer_controller.dart +++ b/lib/features/composer/presentation/composer_controller.dart @@ -56,7 +56,7 @@ class ComposerController extends BaseController { final _appToast = Get.find(); final _imagePaths = Get.find(); - final expandModeAttachments = ExpandMode.EXPAND.obs; + final expandModeAttachments = ExpandMode.COLLAPSE.obs; final composerArguments = Rxn(); final isEnableEmailSendButton = false.obs; final isInitialRecipient = false.obs; @@ -198,6 +198,7 @@ class ComposerController extends BaseController { } _initToEmailAddress(arguments); _initSubjectEmail(arguments); + _initAttachments(arguments); } } @@ -210,6 +211,11 @@ class ComposerController extends BaseController { } } + void _initAttachments(ComposerArguments arguments) { + attachments.value = arguments.attachments ?? []; + initialAttachments = arguments.attachments ?? []; + } + String? getContentEmail(BuildContext context) { if (composerArguments.value != null) { switch(composerArguments.value!.emailActionType) { diff --git a/lib/features/composer/presentation/composer_view_web.dart b/lib/features/composer/presentation/composer_view_web.dart index a887aa6ca..98dacec0d 100644 --- a/lib/features/composer/presentation/composer_view_web.dart +++ b/lib/features/composer/presentation/composer_view_web.dart @@ -444,7 +444,12 @@ class ComposerView extends GetWidget { padding: EdgeInsets.symmetric(horizontal: responsiveUtils.isMobile(context) ? 8 : 10), child: _buildEditor(context, initContent))); } else { - return SizedBox.shrink(); + return Padding( + padding: EdgeInsets.all(16), + child: SizedBox( + width: 30, + height: 30, + child: CupertinoActivityIndicator(color: AppColor.colorLoading))); } } else { final initContent = controller.textEditorWeb ?? controller.getEmailContentQuotedAsHtml(context, controller.composerArguments.value!);