Unverified Commit 695cfa43 authored by Ross Llewallyn's avatar Ross Llewallyn Committed by GitHub

TextFormField docs: added proper type with GlobalKey; replaced "we" (#105605)

parent e1d9adf4
...@@ -18,8 +18,8 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType; ...@@ -18,8 +18,8 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType;
/// ///
/// A [Form] ancestor is not required. The [Form] simply makes it easier to /// A [Form] ancestor is not required. The [Form] simply makes it easier to
/// save, reset, or validate multiple fields at once. To use without a [Form], /// save, reset, or validate multiple fields at once. To use without a [Form],
/// pass a [GlobalKey] to the constructor and use [GlobalKey.currentState] to /// pass a `GlobalKey<FormFieldState>` (see [GlobalKey]) to the constructor and use
/// save or reset the form field. /// [GlobalKey.currentState] to save or reset the form field.
/// ///
/// When a [controller] is specified, its [TextEditingController.text] /// When a [controller] is specified, its [TextEditingController.text]
/// defines the [initialValue]. If this [FormField] is part of a scrolling /// defines the [initialValue]. If this [FormField] is part of a scrolling
...@@ -34,8 +34,8 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType; ...@@ -34,8 +34,8 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType;
/// {@macro flutter.material.textfield.wantKeepAlive} /// {@macro flutter.material.textfield.wantKeepAlive}
/// ///
/// Remember to call [TextEditingController.dispose] of the [TextEditingController] /// Remember to call [TextEditingController.dispose] of the [TextEditingController]
/// when it is no longer needed. This will ensure we discard any resources used /// when it is no longer needed. This will ensure any resources used by the object
/// by the object. /// are discarded.
/// ///
/// By default, `decoration` will apply the [ThemeData.inputDecorationTheme] for /// By default, `decoration` will apply the [ThemeData.inputDecorationTheme] for
/// the current context to the [InputDecoration], see /// the current context to the [InputDecoration], see
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment