From e1f52b9925b48c692a82466925fc07ab4c9bb198 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Sun, 6 Sep 2026 08:10:24 +0300 Subject: [PATCH] improvement --- .../device_transfer_details.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/modules/tm_module/device_transfer/device_transfer_details.dart b/lib/modules/tm_module/device_transfer/device_transfer_details.dart index 5a4933d4..f39e4c6f 100644 --- a/lib/modules/tm_module/device_transfer/device_transfer_details.dart +++ b/lib/modules/tm_module/device_transfer/device_transfer_details.dart @@ -76,6 +76,7 @@ class _DeviceTransferDetailsState extends State { stateCode: 200, onRefresh: () async {}, child: SingleChildScrollView( + padding: const EdgeInsets.all(16), child: Column( children: [ Column( @@ -124,18 +125,20 @@ class _DeviceTransferDetailsState extends State { InfoHeader16Widget("Attachments".addTranslation), 4.height, FilesList( - showAsListView: true, - types: _model?.assetTransferAttachments!=null? - _model!.assetTransferAttachments!.whereType() - .where((e) => e.documentType != null && e.documentType!.name!.isNotEmpty) - .map((toElement) => toElement.documentType!.name!) - .toList():[], + showAsListView: true, + types: _model?.assetTransferAttachments != null + ? _model!.assetTransferAttachments! + .whereType() + .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 { ), ], ], - ).paddingAll(16), + ), ), ), )