TF-2026 Add SaveToDraftAndClose method

(cherry picked from commit f319001c5e30ea33175476aefb9942464b540c8f)
This commit is contained in:
dab246
2023-08-30 18:59:40 +07:00
committed by Dat Vu
parent a1277497b8
commit 5f0b27e742
4 changed files with 9 additions and 7 deletions
@@ -433,7 +433,7 @@ abstract class BaseComposerView extends GetWidget<ComposerController>
),
iconPadding: EdgeInsets.zero,
tooltip: AppLocalizations.of(context).saveAndClose,
onTap: () => controller.saveEmailAsDrafts(context)
onTap: () => controller.saveToDraftAndClose(context)
),
Expanded(child: buildTitleComposer(context)),
if (responsiveUtils.isScreenWithShortestSide(context))
@@ -513,7 +513,7 @@ abstract class BaseComposerView extends GetWidget<ComposerController>
width: 150,
height: 44,
radius: 10,
onTap: () => controller.saveEmailAsDrafts(context)
onTap: () => controller.saveToDraft(context)
),
const SizedBox(width: 12),
buildTextButton(