Skip to content

Commit

Permalink
TF-3045 Hide compose button situationally on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora authored and hoangdat committed Sep 25, 2024
1 parent 9aa438b commit f92a080
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/features/thread/presentation/thread_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,14 @@ class ThreadView extends GetWidget<ThreadController>

return Obx(() {
final isAdvancedSearchViewOpen = controller.searchController.isAdvancedSearchViewOpen.value;
if (!controller.searchController.isSearchActive() && !isAdvancedSearchViewOpen) {
final isTrashViewOpen = controller.isMailboxTrash;
final isSelectModeActive = controller.mailboxDashBoardController.currentSelectMode.value == SelectMode.ACTIVE;
if (
!controller.searchController.isSearchActive()
&& !isAdvancedSearchViewOpen
&& !isTrashViewOpen
&& !isSelectModeActive
) {
return Container(
padding: PlatformInfo.isMobile && controller.listEmailSelected.isNotEmpty
? EdgeInsets.only(bottom: controller.responsiveUtils.isTabletLarge(context) ? 85 : 70)
Expand Down

0 comments on commit f92a080

Please sign in to comment.