Unverified Commit 89e88f89 authored by olof-dev's avatar olof-dev Committed by GitHub

Change "Unicode scalar values" to "Unicode grapheme clusters" in maxLength docs (#106275)

parent 4739c08f
...@@ -651,8 +651,8 @@ class CupertinoTextField extends StatefulWidget { ...@@ -651,8 +651,8 @@ class CupertinoTextField extends StatefulWidget {
/// {@macro flutter.widgets.editableText.expands} /// {@macro flutter.widgets.editableText.expands}
final bool expands; final bool expands;
/// The maximum number of characters (Unicode scalar values) to allow in the /// The maximum number of characters (Unicode grapheme clusters) to allow in
/// text field. /// the text field.
/// ///
/// After [maxLength] characters have been input, additional input /// After [maxLength] characters have been input, additional input
/// is ignored, unless [maxLengthEnforcement] is set to /// is ignored, unless [maxLengthEnforcement] is set to
......
...@@ -543,8 +543,8 @@ class TextField extends StatefulWidget { ...@@ -543,8 +543,8 @@ class TextField extends StatefulWidget {
/// part of the character counter is shown. /// part of the character counter is shown.
static const int noMaxLength = -1; static const int noMaxLength = -1;
/// The maximum number of characters (Unicode scalar values) to allow in the /// The maximum number of characters (Unicode grapheme clusters) to allow in
/// text field. /// the text field.
/// ///
/// If set, a character counter will be displayed below the /// If set, a character counter will be displayed below the
/// field showing how many characters have been entered. If set to a number /// field showing how many characters have been entered. If set to a number
......
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