Skip to content

Commit 19368ef

Browse files
authored
Fix dartdocs of dart:ui (flutter#20140)
1 parent 941c442 commit 19368ef

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

lib/ui/channel_buffers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class ChannelBuffers {
213213
}
214214
}
215215

216-
/// [ChannelBuffer]s that allow the storage of messages between the
216+
/// [ChannelBuffers] that allow the storage of messages between the
217217
/// Engine and the Framework. Typically messages that can't be delivered
218218
/// are stored here until the Framework is able to process them.
219219
///

lib/ui/compositing.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class SceneBuilder extends NativeFieldWrapperClass2 {
605605
///
606606
/// Therefore, when implementing a subclass of the [Layer] concept defined in
607607
/// the rendering layer of Flutter's framework, once this is called, there's
608-
/// no need to call [addToScene] for its children layers.
608+
/// no need to call [Layer.addToScene] for its children layers.
609609
///
610610
/// {@macro dart.ui.sceneBuilder.oldLayerVsRetained}
611611
void addRetained(EngineLayer retainedLayer) {

lib/ui/painting.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,8 +1167,9 @@ class Paint {
11671167
/// See also:
11681168
///
11691169
/// * [Canvas.saveLayer], which uses its [Paint]'s [blendMode] to composite
1170-
/// the layer when [restore] is called.
1171-
/// * [BlendMode], which discusses the user of [saveLayer] with [blendMode].
1170+
/// the layer when [Canvas.restore] is called.
1171+
/// * [BlendMode], which discusses the user of [Canvas.saveLayer] with
1172+
/// [blendMode].
11721173
BlendMode get blendMode {
11731174
final int encoded = _data.getInt32(_kBlendModeOffset, _kFakeHostEndian);
11741175
return BlendMode.values[encoded ^ _kBlendModeDefault];

lib/ui/pointer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ enum PointerDeviceKind {
5656
unknown
5757
}
5858

59-
/// The kind of [PointerDeviceKind.signal].
59+
/// The kind of pointer signal event.
6060
enum PointerSignalKind {
6161
/// The event is not associated with a pointer signal.
6262
none,

lib/ui/semantics.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class SemanticsAction {
169169

170170
/// A request that the node should be dismissed.
171171
///
172-
/// A [Snackbar], for example, may have a dismiss action to indicate to the
172+
/// A [SnackBar], for example, may have a dismiss action to indicate to the
173173
/// user that it can be removed after it is no longer relevant. On Android,
174174
/// (with TalkBack) special hint text is spoken when focusing the node and
175175
/// a custom action is available in the local context menu. On iOS,

lib/ui/text.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1965,7 +1965,8 @@ class Paragraph extends NativeFieldWrapperClass2 {
19651965

19661966
/// Returns a list of text boxes that enclose all placeholders in the paragraph.
19671967
///
1968-
/// The order of the boxes are in the same order as passed in through [addPlaceholder].
1968+
/// The order of the boxes are in the same order as passed in through
1969+
/// [ParagraphBuilder.addPlaceholder].
19691970
///
19701971
/// Coordinates of the [TextBox] are relative to the upper-left corner of the paragraph,
19711972
/// where positive y values indicate down.

lib/ui/window.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,10 +716,11 @@ class Window {
716716
/// This value is calculated by taking
717717
/// `max(0.0, Window.viewPadding - Window.viewInsets)`. This will treat a
718718
/// system IME that increases the bottom inset as consuming that much of the
719-
/// bottom padding. For example, on an iPhone X, [Window.padding.bottom] is
720-
/// the same as [Window.viewPadding.bottom] when the soft keyboard is not
721-
/// drawn (to account for the bottom soft button area), but will be `0.0` when
722-
/// the soft keyboard is visible.
719+
/// bottom padding. For example, on an iPhone X, [EdgeInsets.bottom] of
720+
/// [Window.padding] is the same as [EdgeInsets.bottom] of
721+
/// [Window.viewPadding] when the soft keyboard is not drawn (to account for
722+
/// the bottom soft button area), but will be `0.0` when the soft keyboard is
723+
/// visible.
723724
///
724725
/// When this changes, [onMetricsChanged] is called.
725726
///

0 commit comments

Comments
 (0)