improvement

main_production_attahment_type
Sikander Saleem 1 month ago
parent 4ca6862f3b
commit e1f52b9925

@ -76,6 +76,7 @@ class _DeviceTransferDetailsState extends State<DeviceTransferDetails> {
stateCode: 200,
onRefresh: () async {},
child: SingleChildScrollView(
padding: const EdgeInsets.all(16),
child: Column(
children: [
Column(
@ -124,18 +125,20 @@ class _DeviceTransferDetailsState extends State<DeviceTransferDetails> {
InfoHeader16Widget("Attachments".addTranslation),
4.height,
FilesList(
showAsListView: true,
types: _model?.assetTransferAttachments!=null?
_model!.assetTransferAttachments!.whereType<GenericAttachmentModel>()
.where((e) => e.documentType != null && e.documentType!.name!.isNotEmpty)
.map((toElement) => toElement.documentType!.name!)
.toList():[],
showAsListView: true,
types: _model?.assetTransferAttachments != null
? _model!.assetTransferAttachments!
.whereType<GenericAttachmentModel>()
.where((e) => e.documentType != null && e.documentType!.name!.isNotEmpty)
.map((toElement) => toElement.documentType!.name!)
.toList()
: [],
images: _model?.assetTransferAttachments?.map((e) => URLs.getFileUrl(e.name ?? '') ?? '').toList() ?? []),
]
],
),
],
).toShadowContainer(context, padding: 16),
).toShadowContainer(context),
8.height,
if (_model?.transferType?.value == 1) ...[
_internalRequestDetailsCard()
@ -180,7 +183,7 @@ class _DeviceTransferDetailsState extends State<DeviceTransferDetails> {
),
],
],
).paddingAll(16),
),
),
),
)

Loading…
Cancel
Save