Skip to content

Commit

Permalink
Update upload_form.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Oct 29, 2024
1 parent bd950d8 commit 65bac90
Showing 1 changed file with 35 additions and 37 deletions.
72 changes: 35 additions & 37 deletions lib/components/upload_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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,
),
Expand All @@ -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,
),
),
],
),
],
],
),
],
),
],
),
),
],
),
),
],
Expand Down

0 comments on commit 65bac90

Please sign in to comment.