TF-4141 Remove dead code and fix separator reactivity

This commit is contained in:
dab246
2025-12-29 14:21:39 +07:00
committed by Dat H. Pham
parent fcb7fcf3ba
commit a30c84dd62
3 changed files with 14 additions and 9 deletions
@@ -677,15 +677,12 @@ class SearchEmailView extends GetWidget<SearchEmailController>
),
separatorBuilder: (context, index) {
final isMobile = PlatformInfo.isMobile;
final isLastItem = index == listPresentationEmail.length - 1;
final isInactive =
controller.selectionMode.value == SelectMode.INACTIVE;
final showDivider = !isLastItem;
final dividerColor = isMobile
? null
: (showDivider && isInactive ? null : Colors.white);
: (isInactive ? null : Colors.white);
final padding = isMobile
? SearchEmailUtils.getPaddingItemListMobile(
@@ -697,10 +694,6 @@ class SearchEmailView extends GetWidget<SearchEmailController>
controller.responsiveUtils,
);
if (!showDivider) {
return const SizedBox.shrink();
}
return Padding(
padding: padding,
child: Divider(color: dividerColor),