TF-1685: Fix hover and click to button show all or hide attachments
(cherry picked from commit 248eb28f678d1b4648f459cb864fc77da15ea4bd)
This commit is contained in:
@@ -846,20 +846,20 @@ class ComposerView extends GetWidget<ComposerController>
|
|||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'${AppLocalizations.of(context).attachments} (${filesize(uploadFilesState.totalSize, 0)}):',
|
'${AppLocalizations.of(context).attachments} (${filesize(uploadFilesState.totalSize, 0)}):',
|
||||||
style: const TextStyle(fontSize: 12, color: AppColor.colorHintEmailAddressInput, fontWeight: FontWeight.normal)),
|
style: const TextStyle(fontSize: 12, color: AppColor.colorHintEmailAddressInput, fontWeight: FontWeight.normal)),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Material(
|
TextButton(
|
||||||
|
onPressed: () => controller.toggleDisplayAttachments(),
|
||||||
|
child: Material(
|
||||||
type: MaterialType.circle,
|
type: MaterialType.circle,
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: TextButton(
|
child: Text(
|
||||||
child: Text(
|
expandModeAttachment == ExpandMode.EXPAND
|
||||||
expandModeAttachment == ExpandMode.EXPAND
|
? AppLocalizations.of(context).hide
|
||||||
? AppLocalizations.of(context).hide
|
: '${AppLocalizations.of(context).showAll} (${uploadFilesState.length})',
|
||||||
: '${AppLocalizations.of(context).showAll} (${uploadFilesState.length})',
|
style: const TextStyle(fontWeight: FontWeight.w500, fontSize: 12, color: AppColor.colorTextButton))
|
||||||
style: const TextStyle(fontWeight: FontWeight.w500, fontSize: 12, color: AppColor.colorTextButton)),
|
),
|
||||||
onPressed: () => controller.toggleDisplayAttachments()
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user