You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small fixes in TextEditingController docs (#143717)
This follows up on #143452, to slightly further address #95978.
The double- rather than triple-slash on the blank line caused it to be ignored by dartdoc, so that the two paragraphs it's intended to separate were getting joined as one paragraph instead.
Also expand this constructor's summary line slightly to mention its distinctive feature compared with the other constructor, and make other small fixes that I noticed in other docs on this class.
Copy file name to clipboardExpand all lines: packages/flutter/lib/src/widgets/editable_text.dart
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,7 @@ class _RenderCompositionCallback extends RenderProxyBox {
173
173
/// between the framework and the input method. Consider using
174
174
/// [TextInputFormatter]s instead for as-you-type text modification.
175
175
///
176
-
/// If both the [text]or[selection] properties need to be changed, set the
176
+
/// If both the [text]and[selection] properties need to be changed, set the
177
177
/// controller's [value] instead.
178
178
///
179
179
/// Remember to [dispose] of the [TextEditingController] when it is no longer
@@ -195,7 +195,7 @@ class _RenderCompositionCallback extends RenderProxyBox {
195
195
/// controlled with a [TextEditingController].
196
196
/// * Learn how to use a [TextEditingController] in one of our [cookbook recipes](https://flutter.dev/docs/cookbook/forms/text-field-changes#2-use-a-texteditingcontroller).
0 commit comments