From 65bac9075d0b7f43cd0e32017d046a15453c1ce5 Mon Sep 17 00:00:00 2001 From: Thiago Carvalho <32248947+thiagocarvalhodev@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:51:27 -0300 Subject: [PATCH] Update upload_form.dart --- lib/components/upload_form.dart | 72 ++++++++++++++++----------------- 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/lib/components/upload_form.dart b/lib/components/upload_form.dart index da7a9de38..d8878d085 100644 --- a/lib/components/upload_form.dart +++ b/lib/components/upload_form.dart @@ -2032,7 +2032,7 @@ class _UploadReviewWithLicenseWidget extends StatelessWidget { final colorTokens = ArDriveTheme.of(context).themeData.colorTokens; double heightForManifestSelections = - (readyState.selectedManifestSelections.length * 30) + 16; + (readyState.selectedManifestSelections.length * 30) + 50; if (heightForManifestSelections > 200) { heightForManifestSelections = 175; @@ -2185,7 +2185,7 @@ class _UploadReviewWithArnsNameWidget extends StatelessWidget { final colorTokens = ArDriveTheme.of(context).themeData.colorTokens; double heightForManifestSelections = - (state.readyState.selectedManifestSelections.length * 30) + 16; + (state.readyState.selectedManifestSelections.length * 30) + 50; if (heightForManifestSelections > 200) { heightForManifestSelections = 200; @@ -2242,7 +2242,7 @@ class _UploadReviewWithArnsNameWidget extends StatelessWidget { ], if (state.readyState.selectedManifestSelections.isNotEmpty) ...[ Padding( - padding: const EdgeInsets.only(bottom: 16.0), + padding: const EdgeInsets.only(bottom: 8.0), child: ConstrainedBox( constraints: BoxConstraints( maxHeight: heightForManifestSelections, @@ -2261,21 +2261,40 @@ class _UploadReviewWithArnsNameWidget extends StatelessWidget { ), ), const SizedBox(height: 4), - Flexible( - child: Expanded( - child: ListView( - shrinkWrap: true, - children: [ - ...state.readyState.selectedManifestSelections.map( - (e) => Column( - children: [ + Expanded( + child: ListView( + shrinkWrap: true, + children: [ + ...state.readyState.selectedManifestSelections.map( + (e) => Column( + children: [ + Row( + children: [ + ArDriveIcons.manifest(size: 16), + const SizedBox(width: 8), + Flexible( + child: Text( + e.manifest.name, + style: typography.paragraphNormal( + fontWeight: ArFontWeight.semiBold, + ), + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + ), + ], + ), + if (e.antRecord != null || + e.undername != null) ...[ + const SizedBox(height: 2), Row( children: [ - ArDriveIcons.manifest(size: 16), + ArDriveIcons.arnsName(size: 16), const SizedBox(width: 8), Flexible( child: Text( - e.manifest.name, + getLiteralArNSName( + e.antRecord!, e.undername), style: typography.paragraphNormal( fontWeight: ArFontWeight.semiBold, ), @@ -2285,32 +2304,11 @@ class _UploadReviewWithArnsNameWidget extends StatelessWidget { ), ], ), - if (e.antRecord != null || - e.undername != null) ...[ - const SizedBox(height: 2), - Row( - children: [ - ArDriveIcons.arnsName(size: 16), - const SizedBox(width: 8), - Flexible( - child: Text( - getLiteralArNSName( - e.antRecord!, e.undername), - style: typography.paragraphNormal( - fontWeight: ArFontWeight.semiBold, - ), - maxLines: 1, - overflow: TextOverflow.ellipsis, - ), - ), - ], - ), - ], ], - ), + ], ), - ], - ), + ), + ], ), ), ],