From 43ef76b42083d782e29c3916620aed57afb56b47 Mon Sep 17 00:00:00 2001 From: HuyNguyen Date: Wed, 22 Feb 2023 08:56:59 +0700 Subject: [PATCH] TF-1468: Update the compose icon to display stably --- .../thread/presentation/thread_view.dart | 43 ++++++++----------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/lib/features/thread/presentation/thread_view.dart b/lib/features/thread/presentation/thread_view.dart index 596d7878e..43951fe00 100644 --- a/lib/features/thread/presentation/thread_view.dart +++ b/lib/features/thread/presentation/thread_view.dart @@ -182,30 +182,25 @@ class ThreadView extends GetWidget return Obx(() { if (controller.isAllSearchInActive) { - return Container( - padding: BuildUtils.isWeb - ? EdgeInsets.zero - : controller.isSelectionEnabled() ? const EdgeInsets.only(bottom: 70) : EdgeInsets.zero, - child: Align( - alignment: Alignment.bottomRight, - child: ScrollingFloatingButtonAnimated( - icon: SvgPicture.asset(_imagePaths.icCompose, width: 20, height: 20, fit: BoxFit.fill), - text: Padding( - padding: const EdgeInsets.only(right: 16), - child: Text(AppLocalizations.of(context).compose, - overflow: CommonTextStyle.defaultTextOverFlow, - softWrap: CommonTextStyle.defaultSoftWrap, - style: const TextStyle( - color: AppColor.colorTextButton, - fontSize: 15.0, - fontWeight: FontWeight.w500))), - onPress: () => controller.mailboxDashBoardController.goToComposer(ComposerArguments()), - scrollController: controller.listEmailController, - color: Colors.white, - elevation: 4.0, - width: 140, - animateIcon: false - ) + return Align( + alignment: Alignment.bottomRight, + child: ScrollingFloatingButtonAnimated( + icon: SvgPicture.asset(_imagePaths.icCompose, width: 20, height: 20, fit: BoxFit.fill), + text: Padding( + padding: const EdgeInsets.only(right: 16), + child: Text(AppLocalizations.of(context).compose, + overflow: CommonTextStyle.defaultTextOverFlow, + softWrap: CommonTextStyle.defaultSoftWrap, + style: const TextStyle( + color: AppColor.colorTextButton, + fontSize: 15.0, + fontWeight: FontWeight.w500))), + onPress: () => controller.mailboxDashBoardController.goToComposer(ComposerArguments()), + scrollController: controller.listEmailController, + color: Colors.white, + elevation: 4.0, + width: 140, + animateIcon: false ) ); } else {