Skip to content

Commit e7397c5

Browse files
committed
feat: show file path if name missing
1 parent 9b6b01b commit e7397c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/form_builder_file_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class _FormBuilderFilePickerState
237237
width: double.infinity,
238238
color: Colors.white.withOpacity(.8),
239239
child: Text(
240-
files[index].name,
240+
'${files[index].name ?? files[index].path}',
241241
style: theme.textTheme.caption,
242242
maxLines: 2,
243243
overflow: TextOverflow.clip,

0 commit comments

Comments
 (0)