TF-3472 Prevent attachments from wrapping 2nd line

This commit is contained in:
DatDang
2025-03-04 17:14:15 +07:00
committed by Dat H. Pham
parent 1b4871af9a
commit 3da5b5863d
3 changed files with 143 additions and 142 deletions
@@ -31,4 +31,23 @@ class AttachmentItemWidgetStyle {
color: AppColor.attachmentFileSizeColor,
fontWeight: FontWeight.normal
);
static double getMaxWidthItem({
required bool platformIsMobile,
required bool responsiveIsMobile,
required bool responsiveIsTablet,
required bool responsiveIsTabletLarge,
}) {
if (platformIsMobile) {
return responsiveIsMobile ? maxWidthMobile : maxWidthTablet;
} else {
if (responsiveIsTabletLarge) {
return maxWidthTabletLarge;
} else if (responsiveIsTablet) {
return maxWidthTablet;
} else {
return maxWidthMobile;
}
}
}
}