Skip to content

Commit 3ac0a87

Browse files
author
aakifmuhsin
committed
Update dynamicform.dart
1 parent ccdb78d commit 3ac0a87

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

lib/dynamicform.dart

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,13 +1763,16 @@ class _DynamicFormState extends State<DynamicForm>
17631763
style: widget.fontFamily,
17641764
),
17651765
const SizedBox(width: 4),
1766-
Text(
1767-
'*',
1768-
style: widget.fontFamily.copyWith(
1769-
color: const Color.fromARGB(255, 222, 75, 64),
1770-
fontSize: 16,
1766+
if (field['required'] == true &&
1767+
!(field['type'] is String &&
1768+
(field['type'] as String).contains(',')))
1769+
Text(
1770+
'*',
1771+
style: widget.fontFamily.copyWith(
1772+
color: const Color.fromARGB(255, 222, 75, 64),
1773+
fontSize: 16,
1774+
),
17711775
),
1772-
),
17731776
],
17741777
),
17751778
ReactiveTextField(
@@ -2520,8 +2523,10 @@ class _DynamicFormState extends State<DynamicForm>
25202523
},
25212524
),
25222525
// Rest of the code remains the same
2523-
_buildCommentsField(field, useConditionalDisplay: false),
2524-
if (field['hasAttachments'] == true ||
2526+
if (!(field['type'] is String &&
2527+
(field['type'] as String).contains(','))) ...[
2528+
_buildCommentsField(field, useConditionalDisplay: false),
2529+
] else if (field['hasAttachments'] == true ||
25252530
field['requireAttachmentsOn'] == true ||
25262531
field['requiredAttachmentsOn'] == true) ...[
25272532
const SizedBox(height: 16),

0 commit comments

Comments
 (0)