We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8909efe + 722c562 commit 5f0b835Copy full SHA for 5f0b835
lib/src/form_builder_file_picker.dart
@@ -105,14 +105,15 @@ class FormBuilderFilePicker extends FormBuilderField<List<PlatformFile>> {
105
final state = field as _FormBuilderFilePickerState;
106
107
return InputDecorator(
108
- decoration: state.decoration,
+ decoration: state.decoration.copyWith(
109
+ counterText: maxFiles != null
110
+ ? '${state._files.length} / $maxFiles'
111
+ : null),
112
child: Column(
113
children: <Widget>[
114
Row(
115
mainAxisAlignment: MainAxisAlignment.spaceBetween,
116
- if (maxFiles != null)
- Text('${state._files.length} / $maxFiles'),
117
InkWell(
118
onTap: state.enabled &&
119
(null == state._remainingItemCount ||
0 commit comments