From 695cfa4369191135ca3c8e6d20ad262dff009702 Mon Sep 17 00:00:00 2001 From: Ross Llewallyn Date: Thu, 16 Jun 2022 11:53:24 -0400 Subject: [PATCH] TextFormField docs: added proper type with GlobalKey; replaced "we" (#105605) --- packages/flutter/lib/src/material/text_form_field.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/material/text_form_field.dart b/packages/flutter/lib/src/material/text_form_field.dart index 00454893f9..a5332af041 100644 --- a/packages/flutter/lib/src/material/text_form_field.dart +++ b/packages/flutter/lib/src/material/text_form_field.dart @@ -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 /// save, reset, or validate multiple fields at once. To use without a [Form], -/// pass a [GlobalKey] to the constructor and use [GlobalKey.currentState] to -/// save or reset the form field. +/// pass a `GlobalKey` (see [GlobalKey]) to the constructor and use +/// [GlobalKey.currentState] to save or reset the form field. /// /// When a [controller] is specified, its [TextEditingController.text] /// defines the [initialValue]. If this [FormField] is part of a scrolling @@ -34,8 +34,8 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType; /// {@macro flutter.material.textfield.wantKeepAlive} /// /// Remember to call [TextEditingController.dispose] of the [TextEditingController] -/// when it is no longer needed. This will ensure we discard any resources used -/// by the object. +/// when it is no longer needed. This will ensure any resources used by the object +/// are discarded. /// /// By default, `decoration` will apply the [ThemeData.inputDecorationTheme] for /// the current context to the [InputDecoration], see