Fix mobile cannot download attachment
This commit is contained in:
@@ -47,7 +47,7 @@ class AttachmentItemWidget extends StatelessWidget {
|
|||||||
return Material(
|
return Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: isLoading ? null : () => viewAttachmentAction?.call(attachment),
|
onTap: isLoading ? null : () => (viewAttachmentAction ?? downloadAttachmentAction)?.call(attachment),
|
||||||
customBorder: const RoundedRectangleBorder(
|
customBorder: const RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(AttachmentItemWidgetStyle.radius))
|
borderRadius: BorderRadius.all(Radius.circular(AttachmentItemWidgetStyle.radius))
|
||||||
),
|
),
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ class AttachmentListItemWidget extends StatelessWidget {
|
|||||||
return Material(
|
return Material(
|
||||||
type: MaterialType.transparency,
|
type: MaterialType.transparency,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: isLoading ? null : () => viewAttachmentAction?.call(attachment),
|
onTap: isLoading ? null : () => (viewAttachmentAction?? downloadAttachmentAction)?.call(attachment),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: AttachmentListItemWidgetStyle.contentPadding,
|
padding: AttachmentListItemWidgetStyle.contentPadding,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user