Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e3a6a0da
Unverified
Commit
e3a6a0da
authored
Sep 07, 2022
by
Greg Spencer
Committed by
GitHub
Sep 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annual spelling error fix (#111132)
parent
31709953
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
74 additions
and
74 deletions
+74
-74
date_picker.dart
packages/flutter/lib/src/cupertino/date_picker.dart
+1
-1
dialog.dart
packages/flutter/lib/src/cupertino/dialog.dart
+2
-2
list_section.dart
packages/flutter/lib/src/cupertino/list_section.dart
+1
-1
list_tile.dart
packages/flutter/lib/src/cupertino/list_tile.dart
+7
-7
magnifier.dart
packages/flutter/lib/src/cupertino/magnifier.dart
+1
-1
text_field.dart
packages/flutter/lib/src/cupertino/text_field.dart
+3
-3
assertions.dart
packages/flutter/lib/src/foundation/assertions.dart
+2
-2
binding.dart
packages/flutter/lib/src/foundation/binding.dart
+1
-1
persistent_hash_map.dart
packages/flutter/lib/src/foundation/persistent_hash_map.dart
+1
-1
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+1
-1
dialog.dart
packages/flutter/lib/src/material/dialog.dart
+1
-1
input_decorator.dart
packages/flutter/lib/src/material/input_decorator.dart
+2
-2
magnifier.dart
packages/flutter/lib/src/material/magnifier.dart
+1
-1
selectable_text.dart
packages/flutter/lib/src/material/selectable_text.dart
+3
-3
selection_area.dart
packages/flutter/lib/src/material/selection_area.dart
+3
-3
text_field.dart
packages/flutter/lib/src/material/text_field.dart
+3
-3
edge_insets.dart
packages/flutter/lib/src/painting/edge_insets.dart
+1
-1
image_provider.dart
packages/flutter/lib/src/painting/image_provider.dart
+1
-1
hardware_keyboard.dart
packages/flutter/lib/src/services/hardware_keyboard.dart
+4
-4
platform_channel.dart
packages/flutter/lib/src/services/platform_channel.dart
+2
-2
spell_check.dart
packages/flutter/lib/src/services/spell_check.dart
+2
-2
system_channels.dart
packages/flutter/lib/src/services/system_channels.dart
+2
-2
text_editing_delta.dart
packages/flutter/lib/src/services/text_editing_delta.dart
+1
-1
text_input.dart
packages/flutter/lib/src/services/text_input.dart
+4
-4
editable_text.dart
packages/flutter/lib/src/widgets/editable_text.dart
+1
-1
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+8
-8
image_filter.dart
packages/flutter/lib/src/widgets/image_filter.dart
+1
-1
reorderable_list.dart
packages/flutter/lib/src/widgets/reorderable_list.dart
+2
-2
router.dart
packages/flutter/lib/src/widgets/router.dart
+2
-2
scrollbar.dart
packages/flutter/lib/src/widgets/scrollbar.dart
+1
-1
snapshot_widget.dart
packages/flutter/lib/src/widgets/snapshot_widget.dart
+1
-1
tap_region.dart
packages/flutter/lib/src/widgets/tap_region.dart
+2
-2
text_editing_intents.dart
packages/flutter/lib/src/widgets/text_editing_intents.dart
+1
-1
text_selection.dart
packages/flutter/lib/src/widgets/text_selection.dart
+1
-1
ticker_provider.dart
packages/flutter/lib/src/widgets/ticker_provider.dart
+1
-1
widget_inspector.dart
packages/flutter/lib/src/widgets/widget_inspector.dart
+1
-1
icon_test.dart
packages/flutter/test/widgets/icon_test.dart
+1
-1
upgrade.dart
packages/flutter_tools/lib/src/commands/upgrade.dart
+1
-1
No files found.
packages/flutter/lib/src/cupertino/date_picker.dart
View file @
e3a6a0da
...
...
@@ -208,7 +208,7 @@ enum _PickerColumnType {
///
/// {@tool dartpad}
/// This sample shows how to implement CupertinoDatePicker with different picker modes.
/// We can provide in
ti
ial dateTime value for the picker to display. When user changes
/// We can provide in
it
ial dateTime value for the picker to display. When user changes
/// the drag the date or time wheels, the picker will call onDateTimeChanged callback.
///
/// CupertinoDatePicker can be displayed directly on a screen or in a popup.
...
...
packages/flutter/lib/src/cupertino/dialog.dart
View file @
e3a6a0da
...
...
@@ -158,7 +158,7 @@ bool _isInAccessibilityMode(BuildContext context) {
/// {@youtube 560 315 https://www.youtube.com/watch?v=75CsnyRXf5I}
///
/// An alert dialog informs the user about situations that require
/// acknowledg
e
ment. An alert dialog has an optional title, optional content,
/// acknowledgment. An alert dialog has an optional title, optional content,
/// and an optional list of actions. The title is displayed above the content
/// and the actions are displayed below the content.
///
...
...
@@ -1589,7 +1589,7 @@ class _ActionButtonParentData extends MultiChildLayoutParentData {
/// See also:
///
/// * [CupertinoAlertDialog], a dialog that informs the user about situations
/// that require acknowledg
e
ment.
/// that require acknowledgment.
class
CupertinoDialogAction
extends
StatelessWidget
{
/// Creates an action for an iOS-style dialog.
const
CupertinoDialogAction
({
...
...
packages/flutter/lib/src/cupertino/list_section.dart
View file @
e3a6a0da
...
...
@@ -216,7 +216,7 @@ class CupertinoListSection extends StatelessWidget {
additionalDividerMargin
=
additionalDividerMargin
??
(
hasLeading
?
_kBaseAdditionalDividerMargin
:
0.0
);
/// Creates a section that mimic
k
s standard "Inset Grouped" iOS list section.
/// Creates a section that mimics standard "Inset Grouped" iOS list section.
///
/// The [CupertinoListSection.insetGrouped] constructor creates a round-edged
/// and padded section that is seen in iOS Notes and Reminders apps. It creates
...
...
packages/flutter/lib/src/cupertino/list_tile.dart
View file @
e3a6a0da
...
...
@@ -45,7 +45,7 @@ enum _CupertinoListTileType { base, notched }
/// take care of text wrapping.
///
/// The size of [leading] is by default constrained to match the iOS size,
/// depending of the type of list tile. This can however be overriden by
/// depending of the type of list tile. This can however be overrid
d
en by
/// providing [leadingSize]. The [trailing] widget is not constrained and is
/// therefore a responsibility of the caller to ensure reasonable size of the
/// [trailing] widget.
...
...
@@ -60,7 +60,7 @@ enum _CupertinoListTileType { base, notched }
///
/// The [onTap] callback provides an option to react to taps anywhere inside the
/// list tile. This can be used to navigate routes and according to iOS
/// behavio
u
r it should not be used for example to toggle the [CupertinoSwitch]
/// behavior it should not be used for example to toggle the [CupertinoSwitch]
/// in the trailing widget.
///
/// See also:
...
...
@@ -91,9 +91,9 @@ class CupertinoListTile extends StatefulWidget {
///
/// The [onTap] parameter is used to provide an action that is called when the
/// tile is tapped. It is mainly used for navigating to a new route. It should
/// not be used to toggle a trailing [CupertinoSwitch] and similar usecases
/// not be used to toggle a trailing [CupertinoSwitch] and similar use
cases
/// because when tile is tapped, it switches the background color and remains
/// changed. This is according to iOS behavio
u
r.
/// changed. This is according to iOS behavior.
///
/// The [backgroundColor] provides a custom background color for the tile in
/// a state before tapped. By default, it matches the theme's background color
...
...
@@ -154,9 +154,9 @@ class CupertinoListTile extends StatefulWidget {
///
/// The [onTap] parameter is used to provide an action that is called when the
/// tile is tapped. It is mainly used for navigating to a new route. It should
/// not be used to toggle a trailing [CupertinoSwitch] and similar usecases
/// not be used to toggle a trailing [CupertinoSwitch] and similar use
cases
/// because when tile is tapped, it switches the background color and remains
/// changed. This is according to iOS behavio
u
r.
/// changed. This is according to iOS behavior.
///
/// The [backgroundColor] provides a custom background color for the tile in
/// a state before tapped. By default, it matches the theme's background color
...
...
@@ -218,7 +218,7 @@ class CupertinoListTile extends StatefulWidget {
/// The [onTap] function is called when a user taps on [CupertinoListTile]. If
/// left `null`, the [CupertinoListTile] will not react on taps. If this is a
/// `Future<void> Function()`, then the [CupertinoListTile] remains activated
/// until the returned future is awaited. This is according to iOS behavio
u
r.
/// until the returned future is awaited. This is according to iOS behavior.
/// However, if this function is a `void Function()`, then the tile is active
/// only for the duration of invocation.
final
FutureOr
<
void
>
Function
()?
onTap
;
...
...
packages/flutter/lib/src/cupertino/magnifier.dart
View file @
e3a6a0da
...
...
@@ -266,7 +266,7 @@ class CupertinoMagnifier extends StatelessWidget {
/// The default size of the magnifier.
///
/// This is public so that positioners can choose to depend on it, although
/// it is overrid
e
able.
/// it is overridable.
@visibleForTesting
static
const
Size
kDefaultSize
=
Size
(
80
,
47.5
);
...
...
packages/flutter/lib/src/cupertino/text_field.dart
View file @
e3a6a0da
...
...
@@ -182,7 +182,7 @@ class CupertinoTextField extends StatefulWidget {
/// the number of lines. In this mode, the intrinsic height of the widget will
/// grow as the number of lines of text grows. By default, it is `1`, meaning
/// this is a single-line text field and will scroll horizontally when
///
overflown
. [maxLines] must not be zero.
///
it overflows
. [maxLines] must not be zero.
///
/// The text cursor is not shown if [showCursor] is false or if [showCursor]
/// is null (the default) and [readOnly] is true.
...
...
@@ -351,7 +351,7 @@ class CupertinoTextField extends StatefulWidget {
/// the number of lines. In this mode, the intrinsic height of the widget will
/// grow as the number of lines of text grows. By default, it is `1`, meaning
/// this is a single-line text field and will scroll horizontally when
///
overflown
. [maxLines] must not be zero.
///
it overflows
. [maxLines] must not be zero.
///
/// The text cursor is not shown if [showCursor] is false or if [showCursor]
/// is null (the default) and [readOnly] is true.
...
...
@@ -794,7 +794,7 @@ class CupertinoTextField extends StatefulWidget {
/// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details}
///
/// By default, builds a [CupertinoTextMagnifier] on iOS and Android nothing on all other
/// platforms. If it is desired to supress the magnifier, consider passing
/// platforms. If it is desired to sup
p
ress the magnifier, consider passing
/// [TextMagnifierConfiguration.disabled].
///
// TODO(antholeole): https://github.com/flutter/flutter/issues/108041
...
...
packages/flutter/lib/src/foundation/assertions.dart
View file @
e3a6a0da
...
...
@@ -1042,7 +1042,7 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti
/// Adds a stack filtering function to [defaultStackFilter].
///
/// For example, the framework adds common patterns of element building to
/// elide tree-walking patterns in the stacktrace.
/// elide tree-walking patterns in the stack
trace.
///
/// Added filters are checked in order of addition. The first matching filter
/// wins, and subsequent filters will not be checked.
...
...
@@ -1232,7 +1232,7 @@ void debugPrintStack({StackTrace? stackTrace, String? label, int? maxFrames}) {
class
DiagnosticsStackTrace
extends
DiagnosticsBlock
{
/// Creates a diagnostic for a stack trace.
///
/// [name] describes a name the stacktrace is given, e.g.
/// [name] describes a name the stack
trace is given, e.g.
/// `When the exception was thrown, this was the stack`.
/// [stackFilter] provides an optional filter to use to filter which frames
/// are included. If no filter is specified, [FlutterError.defaultStackFilter]
...
...
packages/flutter/lib/src/foundation/binding.dart
View file @
e3a6a0da
...
...
@@ -110,7 +110,7 @@ typedef ServiceExtensionCallback = Future<Map<String, dynamic>> Function(Map<Str
/// layer that it wishes to expose, and should have an
/// `ensureInitialized` method that constructs the class if that
/// layer's mixin's `_instance` field is null. This allows the binding
/// to be overriden by developers who have more specific needs, while
/// to be overrid
d
en by developers who have more specific needs, while
/// still allowing other code to call `ensureInitialized` when a binding
/// is needed.
///
...
...
packages/flutter/lib/src/foundation/persistent_hash_map.dart
View file @
e3a6a0da
...
...
@@ -390,7 +390,7 @@ List<Object?> _makeArray(int length) {
return
List
<
Object
?>.
filled
(
length
,
null
);
}
/// This helper method becomes an noop when compiled with dart2js on
/// This helper method becomes an no
-
op when compiled with dart2js on
/// with high level of optimizations enabled.
@pragma
(
'dart2js:tryInline'
)
@pragma
(
'dart2js:as:trust'
)
...
...
packages/flutter/lib/src/material/data_table.dart
View file @
e3a6a0da
...
...
@@ -300,7 +300,7 @@ class DataCell {
/// Called if the user cancels a tap was started on cell.
///
/// If non-null, cancel
l
ing the tap gesture will invoke this callback.
/// If non-null, canceling the tap gesture will invoke this callback.
/// If null (including [onTap], [onDoubleTap] and [onLongPress]),
/// tapping the cell will attempt to select the
/// row (if [DataRow.onSelectChanged] is provided).
...
...
packages/flutter/lib/src/material/dialog.dart
View file @
e3a6a0da
...
...
@@ -225,7 +225,7 @@ class Dialog extends StatelessWidget {
/// A Material Design alert dialog.
///
/// An alert dialog (also known as a basic dialog) informs the user about
/// situations that require acknowledg
e
ment. An alert dialog has an optional
/// situations that require acknowledgment. An alert dialog has an optional
/// title and an optional list of actions. The title is displayed above the
/// content and the actions are displayed below the content.
///
...
...
packages/flutter/lib/src/material/input_decorator.dart
View file @
e3a6a0da
...
...
@@ -2892,7 +2892,7 @@ class InputDecoration {
/// [icon] and above the widgets that contain [helperText],
/// [errorText], and [counterText].
///
/// The prefix icon aligment can be changed using [Align] with a fixed `widthFactor` and
/// The prefix icon alig
n
ment can be changed using [Align] with a fixed `widthFactor` and
/// `heightFactor`.
///
/// {@tool dartpad}
...
...
@@ -3014,7 +3014,7 @@ class InputDecoration {
/// [icon] and above the widgets that contain [helperText],
/// [errorText], and [counterText].
///
/// The suffix icon aligment can be changed using [Align] with a fixed `widthFactor` and
/// The suffix icon alig
n
ment can be changed using [Align] with a fixed `widthFactor` and
/// `heightFactor`.
///
/// {@tool dartpad}
...
...
packages/flutter/lib/src/material/magnifier.dart
View file @
e3a6a0da
...
...
@@ -286,7 +286,7 @@ class Magnifier extends StatelessWidget {
/// The vertical distance that the magnifier should be above the focal point.
///
/// [kStandardVerticalFocalPointShift] is an unmodifiable constant so that positioning of this
/// [Magnifier] can be done with a g
aru
nteed size, as opposed to an estimate.
/// [Magnifier] can be done with a g
uara
nteed size, as opposed to an estimate.
@visibleForTesting
static
const
double
kStandardVerticalFocalPointShift
=
22
;
...
...
packages/flutter/lib/src/material/selectable_text.dart
View file @
e3a6a0da
...
...
@@ -440,9 +440,9 @@ class SelectableText extends StatefulWidget {
///
/// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details}
///
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
on
///
Android, and builds nothing on all other platforms. If it is desired to supress
/// the magnifier, consider passing [TextMagnifierConfiguration.disabled].
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
///
on Android, and builds nothing on all other platforms. If it is desired to
///
suppress
the magnifier, consider passing [TextMagnifierConfiguration.disabled].
final
TextMagnifierConfiguration
?
magnifierConfiguration
;
@override
...
...
packages/flutter/lib/src/material/selection_area.dart
View file @
e3a6a0da
...
...
@@ -52,9 +52,9 @@ class SelectionArea extends StatefulWidget {
///
/// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details}
///
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
on
///
Android, and builds nothing on all other platforms. If it is desired to supress
/// the magnifier, consider passing [TextMagnifierConfiguration.disabled].
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
///
on Android, and builds nothing on all other platforms. If it is desired to
///
suppress
the magnifier, consider passing [TextMagnifierConfiguration.disabled].
final
TextMagnifierConfiguration
?
magnifierConfiguration
;
/// {@macro flutter.widgets.Focus.focusNode}
...
...
packages/flutter/lib/src/material/text_field.dart
View file @
e3a6a0da
...
...
@@ -404,9 +404,9 @@ class TextField extends StatefulWidget {
///
/// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details}
///
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
on
///
Android, and builds nothing on all other platforms. If it is desired to supress
/// the magnifier, consider passing [TextMagnifierConfiguration.disabled].
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
///
on Android, and builds nothing on all other platforms. If it is desired to
///
suppress
the magnifier, consider passing [TextMagnifierConfiguration.disabled].
final
TextMagnifierConfiguration
?
magnifierConfiguration
;
/// Controls the text being edited.
...
...
packages/flutter/lib/src/painting/edge_insets.dart
View file @
e3a6a0da
...
...
@@ -678,7 +678,7 @@ class EdgeInsetsDirectional extends EdgeInsetsGeometry {
///
/// This is equivalent to [EdgeInsets.symmetric], since the inset is the same
/// with either [TextDirection]. This constructor is just a convenience for
/// type compatibilty.
/// type compatibil
i
ty.
///
/// {@tool snippet}
/// Eight pixel margin above and below, no horizontal margins:
...
...
packages/flutter/lib/src/painting/image_provider.dart
View file @
e3a6a0da
...
...
@@ -223,7 +223,7 @@ typedef DecoderBufferCallback = Future<ui.Codec> Function(ui.ImmutableBuffer buf
/// image is decoded and ready to display, or when an error occurs.
/// 2. Obtain the key for the image using [obtainKey].
/// Calling this method can throw exceptions into the zone asynchronously
/// or into the callstack synchronously. To handle that, an error handler
/// or into the call
stack synchronously. To handle that, an error handler
/// is created that catches both synchronous and asynchronous errors, to
/// make sure errors can be routed to the correct consumers.
/// The error handler is passed on to [resolveStreamForKey] and the
...
...
packages/flutter/lib/src/services/hardware_keyboard.dart
View file @
e3a6a0da
...
...
@@ -146,7 +146,7 @@ abstract class KeyEvent with Diagnosticable {
/// keystroke, if any.
///
/// This will only return a character if this keystroke, combined with any
/// preceding keystroke(s), generats a character, and only on a "key down"
/// preceding keystroke(s), generat
e
s a character, and only on a "key down"
/// event. It will return null if no character has been generated by the
/// keystroke (e.g. a "dead" or "combining" key), or if the corresponding key
/// is a key without a visual representation, such as a modifier key or a
...
...
@@ -178,7 +178,7 @@ abstract class KeyEvent with Diagnosticable {
/// might be converted to a Flutter down event when necessary.)
///
/// A [synthesized] event is created without a source native event in order to
/// syn
t
hronize key states. For example, if the native platform shows that a
/// syn
c
hronize key states. For example, if the native platform shows that a
/// shift key that was previously held has been released somehow without the
/// key up event dispatched (probably due to loss of focus), a synthesized key
/// up event will be added to regularized the event stream.
...
...
@@ -790,7 +790,7 @@ class KeyEventManager {
/// and calls the original callback in between (or not at all.)
///
/// Patching [keyMessageHandler] can not be reverted. You should always assume
/// that another component might have
d
patched it before you and after you.
/// that another component might have patched it before you and after you.
/// This means that you might want to write your own global notification
/// manager, to which callbacks can be added and removed.
///
...
...
@@ -804,7 +804,7 @@ class KeyEventManager {
///
/// The app prints out any key events that are not handled by the app body.
/// Try typing something in the first text field. These key presses are not
/// handled by `Shorcuts` and will be sent to the fallback handler and printed
/// handled by `Shor
t
cuts` and will be sent to the fallback handler and printed
/// out. Now try some text shortcuts, such as Ctrl+A. The KeyA press is
/// handled as a shortcut, and is not sent to the fallback handler and so is
/// not printed out.
...
...
packages/flutter/lib/src/services/platform_channel.dart
View file @
e3a6a0da
...
...
@@ -268,10 +268,10 @@ class MethodChannel {
/// [binaryMessenger]'s [BinaryMessenger.send] method.
///
/// If the result is null and `missingOk` is true, this returns null. (This is
/// the behavio
u
r of [OptionalMethodChannel.invokeMethod].)
/// the behavior of [OptionalMethodChannel.invokeMethod].)
///
/// If the result is null and `missingOk` is false, this throws a
/// [MissingPluginException]. (This is the behavio
u
r of
/// [MissingPluginException]. (This is the behavior of
/// [MethodChannel.invokeMethod].)
///
/// Otherwise, the result is decoded using the [codec]'s
...
...
packages/flutter/lib/src/services/spell_check.dart
View file @
e3a6a0da
...
...
@@ -108,10 +108,10 @@ abstract class SpellCheckService {
/// See also:
///
/// * [SpellCheckService], the service that this implements that may be
/// overriden for use by [EditableText].
/// overrid
d
en for use by [EditableText].
/// * [EditableText], which may use this service to fetch results.
class
DefaultSpellCheckService
implements
SpellCheckService
{
/// Creates service to spell check text input by default via commun
c
ication
/// Creates service to spell check text input by default via communication
/// over the spell check [MethodChannel].
DefaultSpellCheckService
()
{
spellCheckChannel
=
SystemChannels
.
spellCheck
;
...
...
packages/flutter/lib/src/services/system_channels.dart
View file @
e3a6a0da
...
...
@@ -227,7 +227,7 @@ class SystemChannels {
/// This channel exposes the spell check framework for supported platforms.
/// Currently supported on Android only.
///
/// Spell check requests are intiated by `SpellCheck.initiateSpellCheck`.
/// Spell check requests are in
i
tiated by `SpellCheck.initiateSpellCheck`.
/// These requests may either be completed or canceled. If the request is
/// completed, the shell side will respond with the results of the request.
/// Otherwise, the shell side will respond with null.
...
...
@@ -238,7 +238,7 @@ class SystemChannels {
/// * `SpellCheck.initiateSpellCheck`: Sends request for specified text to be
/// spell checked and returns the result, either a [List<SuggestionSpan>]
/// representing the spell check results of the text or null if the request
/// was cancel
l
ed. The arguments are the [String] to be spell checked
/// was canceled. The arguments are the [String] to be spell checked
/// and the [Locale] for the text to be spell checked with.
static
const
MethodChannel
spellCheck
=
OptionalMethodChannel
(
'flutter/spellcheck'
,
...
...
packages/flutter/lib/src/services/text_editing_delta.dart
View file @
e3a6a0da
...
...
@@ -247,7 +247,7 @@ abstract class TextEditingDelta {
TextEditingValue
apply
(
TextEditingValue
value
);
}
/// A structure representing an insertion of a single/or contigous sequence of
/// A structure representing an insertion of a single/or contig
u
ous sequence of
/// characters at some offset of an editing state.
@immutable
class
TextEditingDeltaInsertion
extends
TextEditingDelta
{
...
...
packages/flutter/lib/src/services/text_input.dart
View file @
e3a6a0da
...
...
@@ -827,11 +827,11 @@ class TextEditingValue {
/// prediction changes.
///
/// Composing regions can also be used for performing multistage input, which
/// is typically used by IMEs designed for phoetic keyboard to enter
/// is typically used by IMEs designed for pho
n
etic keyboard to enter
/// ideographic symbols. As an example, many CJK keyboards require the user to
/// enter a
l
atin alphabet sequence and then convert it to CJK characters. On
/// enter a
L
atin alphabet sequence and then convert it to CJK characters. On
/// iOS, the default software keyboards do not have a dedicated view to show
/// the unfinished
l
atin sequence, so it's displayed directly in the text
/// the unfinished
L
atin sequence, so it's displayed directly in the text
/// field, inside of a composing region.
///
/// The composing region should typically only be changed by the IME, or the
...
...
@@ -879,7 +879,7 @@ class TextEditingValue {
///
/// This method also adjusts the selection range and the composing range of the
/// resulting [TextEditingValue], such that they point to the same substrings
/// as the correspo
i
nding ranges in the original [TextEditingValue]. For
/// as the corresponding ranges in the original [TextEditingValue]. For
/// example, if the original [TextEditingValue] is "Hello world" with the word
/// "world" selected, replacing "Hello" with a different string using this
/// method will not change the selected word.
...
...
packages/flutter/lib/src/widgets/editable_text.dart
View file @
e3a6a0da
...
...
@@ -4189,7 +4189,7 @@ class _ScribblePlaceholder extends WidgetSpan {
}
}
/// An interface for retriving the logical text boundary (left-closed-right-open)
/// An interface for retri
e
ving the logical text boundary (left-closed-right-open)
/// at a given location in a document.
///
/// Depending on the implementation of the [_TextBoundary], the input
...
...
packages/flutter/lib/src/widgets/framework.dart
View file @
e3a6a0da
...
...
@@ -459,7 +459,7 @@ abstract class Widget extends DiagnosticableTree {
/// Flutter would short-circuit most of the rebuild work.
/// {@endtemplate}
///
/// This video gives more expla
i
nations on why `const` constructors are important
/// This video gives more explanations on why `const` constructors are important
/// and why a [Widget] is better than a helper method.
///
/// {@youtube 560 315 https://www.youtube.com/watch?v=IOyq-eTRhvo}
...
...
@@ -657,7 +657,7 @@ abstract class StatelessWidget extends Widget {
/// subtree and re-use it each time it can be used. To do this, simply assign
/// a widget to a `final` state variable and re-use it in the build method. It
/// is massively more efficient for a widget to be re-used than for a new (but
/// identically-configured) widget to be created. Another caching stra
g
egy
/// identically-configured) widget to be created. Another caching stra
t
egy
/// consists in extracting the mutable part of the widget into a [StatefulWidget]
/// which accepts a child parameter.
///
...
...
@@ -682,7 +682,7 @@ abstract class StatelessWidget extends Widget {
///
/// {@macro flutter.flutter.widgets.framework.prefer_const_over_helper}
///
/// This video gives more expla
i
nations on why `const` constructors are important
/// This video gives more explanations on why `const` constructors are important
/// and why a [Widget] is better than a helper method.
///
/// {@youtube 560 315 https://www.youtube.com/watch?v=IOyq-eTRhvo}
...
...
@@ -855,7 +855,7 @@ typedef StateSetter = void Function(VoidCallback fn);
/// * At this point, the [State] object is fully initialized and the framework
/// might call its [build] method any number of times to obtain a
/// description of the user interface for this subtree. [State] objects can
/// spontaneously request to rebuild their subtree by calling
s
their
/// spontaneously request to rebuild their subtree by calling their
/// [setState] method, which indicates that some of their internal state
/// has changed in a way that might impact the user interface in this
/// subtree.
...
...
@@ -3263,7 +3263,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
///
/// Avoid overriding this field on [Element] subtypes to provide a more
/// specific widget type (i.e. [StatelessElement] and [StatelessWidget]).
/// Instead, cast at any callsites where the more specific type is required.
/// Instead, cast at any call
sites where the more specific type is required.
/// This avoids significant cast overhead on the getter which is accessed
/// throughout the framework internals during the build phase - and for which
/// the more specific type information is not used.
...
...
@@ -4585,7 +4585,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
/// called to mark this element dirty, by [mount] when the element is first
/// built, and by [update] when the widget has changed.
///
/// The method will only rebuild if [dirty] is true. To rebuild
ir
regardless
/// The method will only rebuild if [dirty] is true. To rebuild regardless
/// of the [dirty] flag, set `force` to true. Forcing a rebuild is convenient
/// from [update], during which [dirty] is false.
@pragma
(
'vm:prefer-inline'
)
...
...
@@ -5518,7 +5518,7 @@ class InheritedElement extends ProxyElement {
/// [RenderObjectElement] objects spend much of their time acting as
/// intermediaries between their [widget] and their [renderObject]. It is
/// generally recommended against specializing the [widget] getter and
/// instead casting at the various callsites to avoid adding overhead
/// instead casting at the various call
sites to avoid adding overhead
/// outside of this particular implementation.
///
/// ```dart
...
...
@@ -5800,7 +5800,7 @@ abstract class RenderObjectElement extends Element {
/// and then returns the new child list.
///
/// During this function the `oldChildren` list must not be modified. If the
/// caller wishes to remove elements from `oldChildren` re
-
entrantly while
/// caller wishes to remove elements from `oldChildren` reentrantly while
/// this function is on the stack, the caller can supply a `forgottenChildren`
/// argument, which can be modified while this function is on the stack.
/// Whenever this function reads from `oldChildren`, this function first
...
...
packages/flutter/lib/src/widgets/image_filter.dart
View file @
e3a6a0da
...
...
@@ -46,7 +46,7 @@ class ImageFiltered extends SingleChildRenderObjectWidget {
/// The image filter to apply to the child of this widget.
final
ImageFilter
imageFilter
;
/// Whether or not to apply the image filter opation to the child of this
/// Whether or not to apply the image filter op
er
ation to the child of this
/// widget.
///
/// Prefer setting enabled to `false` instead of creating a "no-op" filter
...
...
packages/flutter/lib/src/widgets/reorderable_list.dart
View file @
e3a6a0da
...
...
@@ -344,7 +344,7 @@ class ReorderableListState extends State<ReorderableList> {
/// the pointer down [event].
///
/// The given [recognizer] will be used to recognize and start the drag
/// item tracking and lead to either an item reorder, or a cancel
l
ed drag.
/// item tracking and lead to either an item reorder, or a canceled drag.
/// The list will take ownership of the returned recognizer and will dispose
/// it when it is no longer needed.
///
...
...
@@ -637,7 +637,7 @@ class SliverReorderableListState extends State<SliverReorderableList> with Ticke
/// the pointer down [event].
///
/// The given [recognizer] will be used to recognize and start the drag
/// item tracking and lead to either an item reorder, or a cancel
l
ed drag.
/// item tracking and lead to either an item reorder, or a canceled drag.
///
/// Most applications will not use this directly, but will wrap the item
/// (or part of the item, like a drag handle) in either a
...
...
packages/flutter/lib/src/widgets/router.dart
View file @
e3a6a0da
...
...
@@ -818,7 +818,7 @@ class _RouterScope extends InheritedWidget {
/// See also:
///
/// * [Listenable] and its subclasses, which provide a similar mechanism for
/// one-way signal
l
ing.
/// one-way signaling.
class
_CallbackHookProvider
<
T
>
{
final
ObserverList
<
ValueGetter
<
T
>>
_callbacks
=
ObserverList
<
ValueGetter
<
T
>>();
...
...
@@ -1203,7 +1203,7 @@ abstract class RouteInformationParser<T> {
///
/// The input [BuildContext] can be used for looking up [InheritedWidget]s
/// If one uses [BuildContext.dependOnInheritedWidgetOfExactType], a
/// dependency will be created. The [Router] will reparse the
/// dependency will be created. The [Router] will re
-
parse the
/// [RouteInformation] from its [RouteInformationProvider] if the dependency
/// notifies its listeners.
///
...
...
packages/flutter/lib/src/widgets/scrollbar.dart
View file @
e3a6a0da
...
...
@@ -934,7 +934,7 @@ class ScrollbarPainter extends ChangeNotifier implements CustomPainter {
///
/// {@tool dartpad}
/// This sample shows how to disable the default Scrollbar for a [Scrollable]
/// widget to avoid duplicate Scrollbars when runn
u
ng on desktop platforms.
/// widget to avoid duplicate Scrollbars when runn
i
ng on desktop platforms.
///
/// ** See code in examples/api/lib/widgets/scrollbar/raw_scrollbar.desktop.0.dart **
/// {@end-tool}
...
...
packages/flutter/lib/src/widgets/snapshot_widget.dart
View file @
e3a6a0da
...
...
@@ -70,7 +70,7 @@ class SnapshotController extends ChangeNotifier {
}
}
/// A widget that can replace its child with a snapshoted version of the child.
/// A widget that can replace its child with a snapshot
t
ed version of the child.
///
/// A snapshot is a frozen texture-backed representation of all child pictures
/// and layers stored as a [ui.Image].
...
...
packages/flutter/lib/src/widgets/tap_region.dart
View file @
e3a6a0da
...
...
@@ -93,7 +93,7 @@ abstract class TapRegionRegistry {
/// encompass the entire area where taps should be monitored. This is typically
/// around the entire app. If the entire app isn't covered, then taps outside of
/// the `TapRegionSurface` will be ignored and no [TapRegion.onTapOutside] calls
/// wil be made for those events. The [WidgetsApp], [MaterialApp] and
/// wil
l
be made for those events. The [WidgetsApp], [MaterialApp] and
/// [CupertinoApp] automatically include a `TapRegionSurface` around their
/// entire app.
///
...
...
@@ -155,7 +155,7 @@ class TapRegionSurface extends SingleChildRenderObjectWidget {
/// to encompass the entire area where taps should be monitored. This is
/// typically around the entire app. If the entire app isn't covered, then taps
/// outside of the `RenderTapRegionSurface` will be ignored and no
/// [RenderTapRegion.onTapOutside] calls wil be made for those events. The
/// [RenderTapRegion.onTapOutside] calls wil
l
be made for those events. The
/// [WidgetsApp], [MaterialApp] and [CupertinoApp] automatically include a
/// `RenderTapRegionSurface` around the entire app.
///
...
...
packages/flutter/lib/src/widgets/text_editing_intents.dart
View file @
e3a6a0da
...
...
@@ -28,7 +28,7 @@ abstract class DirectionalTextEditingIntent extends Intent {
/// operation from the current caret location towards the end of the document.
///
/// Unless otherwise specified by the recipient of this intent, this parameter
/// uses the logical order of characters in the string to determin
d
the
/// uses the logical order of characters in the string to determin
e
the
/// direction, and is not affected by the writing direction of the text.
final
bool
forward
;
}
...
...
packages/flutter/lib/src/widgets/text_selection.dart
View file @
e3a6a0da
...
...
@@ -2592,6 +2592,6 @@ enum ClipboardStatus {
/// waiting to receive the clipboard contents for the first time.
unknown
,
/// The content on the clipboard is not past
e
able, such as when it is empty.
/// The content on the clipboard is not pastable, such as when it is empty.
notPasteable
,
}
packages/flutter/lib/src/widgets/ticker_provider.dart
View file @
e3a6a0da
...
...
@@ -75,7 +75,7 @@ class TickerMode extends StatefulWidget {
/// the `context` and the [TickerMode] and the widget owning the `context`
/// does not rebuild when the ticker mode changes from true to false or vice
/// versa. This is preferable when the ticker mode does not impact what is
/// currently rendered on screen, e.g. because it is ony used to mute/unmute a
/// currently rendered on screen, e.g. because it is on
l
y used to mute/unmute a
/// [Ticker]. Since no dependency is established, the widget owning the
/// `context` is also not informed when it is moved to a new location in the
/// tree where it may have a different [TickerMode] ancestor. When this
...
...
packages/flutter/lib/src/widgets/widget_inspector.dart
View file @
e3a6a0da
...
...
@@ -1531,7 +1531,7 @@ mixin WidgetInspectorService {
}
/// Returns JSON representing the chain of [DiagnosticsNode] instances from
/// root of the
e
tree to the [Element] or [RenderObject] matching `id`.
/// root of the tree to the [Element] or [RenderObject] matching `id`.
///
/// The JSON contains all information required to display a tree view with
/// all nodes other than nodes along the path collapsed.
...
...
packages/flutter/test/widgets/icon_test.dart
View file @
e3a6a0da
...
...
@@ -269,7 +269,7 @@ void main() {
]);
});
testWidgets
(
'Theme-level fill, weight, grade, and optical size can be overriden'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Theme-level fill, weight, grade, and optical size can be overrid
d
en'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
const
Directionality
(
textDirection:
TextDirection
.
ltr
,
...
...
packages/flutter_tools/lib/src/commands/upgrade.dart
View file @
e3a6a0da
...
...
@@ -303,7 +303,7 @@ class UpgradeCommandRunner {
/// Update the engine repository and precache all artifacts.
///
/// Check for and download any engine and pkg/ updates. We run the 'flutter'
/// shell script re
-
entrantly here so that it will download the updated
/// shell script reentrantly here so that it will download the updated
/// Dart and so forth if necessary.
Future
<
void
>
precacheArtifacts
()
async
{
globals
.
printStatus
(
''
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment