TF-1685: Fix hover and click to button show all or hide attachments

(cherry picked from commit 248eb28f678d1b4648f459cb864fc77da15ea4bd)
This commit is contained in:
HuyNguyen
2023-04-06 23:46:40 +07:00
committed by Dat Vu
parent 6ca4d7ce7b
commit e145ecfbf6
@@ -846,20 +846,20 @@ class ComposerView extends GetWidget<ComposerController>
return Row(
children: [
Text(
'${AppLocalizations.of(context).attachments} (${filesize(uploadFilesState.totalSize, 0)}):',
style: const TextStyle(fontSize: 12, color: AppColor.colorHintEmailAddressInput, fontWeight: FontWeight.normal)),
'${AppLocalizations.of(context).attachments} (${filesize(uploadFilesState.totalSize, 0)}):',
style: const TextStyle(fontSize: 12, color: AppColor.colorHintEmailAddressInput, fontWeight: FontWeight.normal)),
const Spacer(),
Material(
TextButton(
onPressed: () => controller.toggleDisplayAttachments(),
child: Material(
type: MaterialType.circle,
color: Colors.transparent,
child: TextButton(
child: Text(
expandModeAttachment == ExpandMode.EXPAND
? AppLocalizations.of(context).hide
: '${AppLocalizations.of(context).showAll} (${uploadFilesState.length})',
style: const TextStyle(fontWeight: FontWeight.w500, fontSize: 12, color: AppColor.colorTextButton)),
onPressed: () => controller.toggleDisplayAttachments()
)
child: Text(
expandModeAttachment == ExpandMode.EXPAND
? AppLocalizations.of(context).hide
: '${AppLocalizations.of(context).showAll} (${uploadFilesState.length})',
style: const TextStyle(fontWeight: FontWeight.w500, fontSize: 12, color: AppColor.colorTextButton))
),
)
],
);