TF-1468: Check condition when selected email to build FloatingButtonCompose
This commit is contained in:
@@ -182,26 +182,31 @@ class ThreadView extends GetWidget<ThreadController>
|
|||||||
|
|
||||||
return Obx(() {
|
return Obx(() {
|
||||||
if (controller.isAllSearchInActive) {
|
if (controller.isAllSearchInActive) {
|
||||||
return Align(
|
return Container(
|
||||||
alignment: Alignment.bottomRight,
|
padding: BuildUtils.isWeb
|
||||||
child: ScrollingFloatingButtonAnimated(
|
? EdgeInsets.zero
|
||||||
icon: SvgPicture.asset(_imagePaths.icCompose, width: 20, height: 20, fit: BoxFit.fill),
|
: controller.listEmailSelected.isNotEmpty ? const EdgeInsets.only(bottom: 70) : EdgeInsets.zero,
|
||||||
text: Padding(
|
child: Align(
|
||||||
padding: const EdgeInsets.only(right: 16),
|
alignment: Alignment.bottomRight,
|
||||||
child: Text(AppLocalizations.of(context).compose,
|
child: ScrollingFloatingButtonAnimated(
|
||||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
icon: SvgPicture.asset(_imagePaths.icCompose, width: 20, height: 20, fit: BoxFit.fill),
|
||||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
text: Padding(
|
||||||
style: const TextStyle(
|
padding: const EdgeInsets.only(right: 16),
|
||||||
color: AppColor.colorTextButton,
|
child: Text(AppLocalizations.of(context).compose,
|
||||||
fontSize: 15.0,
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
fontWeight: FontWeight.w500))),
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
onPress: () => controller.mailboxDashBoardController.goToComposer(ComposerArguments()),
|
style: const TextStyle(
|
||||||
scrollController: controller.listEmailController,
|
color: AppColor.colorTextButton,
|
||||||
color: Colors.white,
|
fontSize: 15.0,
|
||||||
elevation: 4.0,
|
fontWeight: FontWeight.w500))),
|
||||||
width: 140,
|
onPress: () => controller.mailboxDashBoardController.goToComposer(ComposerArguments()),
|
||||||
animateIcon: false
|
scrollController: controller.listEmailController,
|
||||||
)
|
color: Colors.white,
|
||||||
|
elevation: 4.0,
|
||||||
|
width: 140,
|
||||||
|
animateIcon: false
|
||||||
|
)
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
|
|||||||
Reference in New Issue
Block a user