Skip to content

Commit 695cfa4

Browse files
authored
TextFormField docs: added proper type with GlobalKey; replaced "we" (#105605)
1 parent e1d9adf commit 695cfa4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/flutter/lib/src/material/text_form_field.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType;
1818
///
1919
/// A [Form] ancestor is not required. The [Form] simply makes it easier to
2020
/// save, reset, or validate multiple fields at once. To use without a [Form],
21-
/// pass a [GlobalKey] to the constructor and use [GlobalKey.currentState] to
22-
/// save or reset the form field.
21+
/// pass a `GlobalKey<FormFieldState>` (see [GlobalKey]) to the constructor and use
22+
/// [GlobalKey.currentState] to save or reset the form field.
2323
///
2424
/// When a [controller] is specified, its [TextEditingController.text]
2525
/// defines the [initialValue]. If this [FormField] is part of a scrolling
@@ -34,8 +34,8 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType;
3434
/// {@macro flutter.material.textfield.wantKeepAlive}
3535
///
3636
/// Remember to call [TextEditingController.dispose] of the [TextEditingController]
37-
/// when it is no longer needed. This will ensure we discard any resources used
38-
/// by the object.
37+
/// when it is no longer needed. This will ensure any resources used by the object
38+
/// are discarded.
3939
///
4040
/// By default, `decoration` will apply the [ThemeData.inputDecorationTheme] for
4141
/// the current context to the [InputDecoration], see

0 commit comments

Comments
 (0)