improvement.

design_3.0_demo_module
Sikander Saleem 13 hours ago
parent 4e56746e88
commit c69bcc2843

@ -373,6 +373,7 @@ class _AttachmentPickerState extends State<AttachmentPicker> {
file: image,
showAsListView: widget.showAsListView,
enabled: widget.enabled,
documentType: widget.attachment[index].documentTypeId?.name,
onRemoveTap: (image) {
if (!widget.enabled) {
return;

@ -21,6 +21,7 @@ class MultiFilesPickerItem extends StatelessWidget {
final Function(File) onRemoveTap;
final VoidCallback? onRemove;
final bool showAsListView;
final String? documentType;
const MultiFilesPickerItem({
Key? key,
@ -28,6 +29,7 @@ class MultiFilesPickerItem extends StatelessWidget {
required this.enabled,
required this.onRemoveTap,
this.onRemove,
this.documentType,
this.showAsListView = false,
}) : super(key: key);
@ -82,7 +84,7 @@ class MultiFilesPickerItem extends StatelessWidget {
4.height,
RichText(
text: TextSpan(
text: 'Asset Guide | ',
text: documentType == null ? 'Asset Guide | ' : '$documentType | ',
style: AppTextStyles.bodyText.copyWith(color: AppColor.neutral120),
children: <TextSpan>[
TextSpan(

Loading…
Cancel
Save