|
|
|
|
@ -317,19 +317,25 @@ class _AssetDetailsViewState extends State<AssetDetailsView> with SingleTickerPr
|
|
|
|
|
opacity: attachmentAnimation,
|
|
|
|
|
child: const Divider().defaultStyle(context),
|
|
|
|
|
),
|
|
|
|
|
InfoHeader16Widget("Attachments".addTranslation),
|
|
|
|
|
FadeTransition(
|
|
|
|
|
opacity: attachmentAnimation,
|
|
|
|
|
child: SlideTransition(
|
|
|
|
|
position: attachmentSlideAnimation,
|
|
|
|
|
child: InfoHeader16Widget("Attachments".addTranslation),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
4.height,
|
|
|
|
|
FadeTransition(
|
|
|
|
|
opacity: attachmentAnimation,
|
|
|
|
|
child: SlideTransition(
|
|
|
|
|
position: attachmentSlideAnimation,
|
|
|
|
|
child: FilesList(
|
|
|
|
|
showAsListView: true,
|
|
|
|
|
types: attachments
|
|
|
|
|
.whereType<GenericAttachmentModel>()
|
|
|
|
|
.where((e) => e.documentType != null && e.documentType!.name!.isNotEmpty)
|
|
|
|
|
.map((toElement) => toElement.documentType!.name!)
|
|
|
|
|
.toList(),
|
|
|
|
|
showAsListView: true,
|
|
|
|
|
types: attachments
|
|
|
|
|
.whereType<GenericAttachmentModel>()
|
|
|
|
|
.where((e) => e.documentType != null && e.documentType!.name!.isNotEmpty)
|
|
|
|
|
.map((toElement) => toElement.documentType!.name!)
|
|
|
|
|
.toList(),
|
|
|
|
|
images: attachments.map((toElement) => URLs.getFileUrl(toElement.name!) ?? '').toList()),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -351,5 +357,4 @@ class _AssetDetailsViewState extends State<AssetDetailsView> with SingleTickerPr
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|