Skip to content

Commit d2cd50b

Browse files
docs: add deprecated annotation for canRequestFocus on FormBuilderTextField
1 parent ec7543b commit d2cd50b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/fields/form_builder_text_field.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ class FormBuilderTextField extends FormBuilderFieldDecoration<String> {
424424
this.contentInsertionConfiguration,
425425
this.spellCheckConfiguration,
426426
this.clipBehavior = Clip.hardEdge,
427+
@Deprecated(
428+
'This property will be removed in the next Flutter stable versions. '
429+
'Use FocusNode.canRequestFocus instead. '
430+
'Ref: https://docs.flutter.dev/release/breaking-changes/can-request-focus',
431+
)
427432
this.canRequestFocus = true,
428433
this.cursorErrorColor,
429434
this.cursorOpacityAnimates,

0 commit comments

Comments
 (0)