TF-1573: Cursor auto move while typing

(cherry picked from commit 64240b7fac51d66311ee308fe6287f3ddab40ac9)
This commit is contained in:
ManhNTX
2023-03-17 10:05:12 +07:00
committed by Dat Vu
parent 362c51edb2
commit e3317ad778
2 changed files with 61 additions and 19 deletions
@@ -467,29 +467,41 @@ class ComposerView extends GetWidget<ComposerController>
),
richTextController: controller.keyboardRichTextController,
child: SingleChildScrollView(
controller: controller.scrollController,
physics: const ClampingScrollPhysics(),
child: Column(children: [
Obx(() => controller.identitySelected.value != null
? _buildFromEmailAddress(context)
: const SizedBox.shrink()),
Obx(() => controller.identitySelected.value != null
? const Divider(color: AppColor.colorDividerComposer, height: 1)
: const SizedBox.shrink()),
_buildEmailAddress(context),
const Divider(color: AppColor.colorDividerComposer, height: 1),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: _buildSubjectEmail(context)),
const Divider(color: AppColor.colorDividerComposer, height: 1),
_buildAttachmentsWidget(context),
buildInlineLoadingView(controller),
controller: controller.scrollController,
physics: const ClampingScrollPhysics(),
child: Column(
children: [
_buildHeaderEditorMobile(context),
_buildComposerEditor(context),
])
SizedBox(height: controller.maxKeyBoardHeight),
],
),
),
);
}
Widget _buildHeaderEditorMobile(BuildContext context) {
return Column(
key: controller.headerEditorMobileWidgetKey,
children: [
Obx(() => controller.identitySelected.value != null
? _buildFromEmailAddress(context)
: const SizedBox.shrink()),
Obx(() => controller.identitySelected.value != null
? const Divider(color: AppColor.colorDividerComposer, height: 1)
: const SizedBox.shrink()),
_buildEmailAddress(context),
const Divider(color: AppColor.colorDividerComposer, height: 1),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: _buildSubjectEmail(context)),
const Divider(color: AppColor.colorDividerComposer, height: 1),
_buildAttachmentsWidget(context),
buildInlineLoadingView(controller),
],
);
}
Widget _buildBodyTablet(BuildContext context) {
return SingleChildScrollView(
controller: controller.scrollController,