Skip to content

Commit b8211b3

Browse files
authored
Fix link in RenderObjectWidget doc comment (flutter#150600)
Fix a link in the `RenderObjectWidget` doc comment. The comment recommends subclassing `SingleChildRenderObjectElement` where it means to recommend subclassing `SingleChildRenderObjectWidget`. Fixes flutter#150597.
1 parent a796770 commit b8211b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter/lib/src/widgets/framework.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ abstract class InheritedWidget extends ProxyWidget {
18781878
/// object widgets subclass one of:
18791879
///
18801880
/// * [LeafRenderObjectWidget], if the widget has no children.
1881-
/// * [SingleChildRenderObjectElement], if the widget has exactly one child.
1881+
/// * [SingleChildRenderObjectWidget], if the widget has exactly one child.
18821882
/// * [MultiChildRenderObjectWidget], if the widget takes a list of children.
18831883
/// * [SlottedMultiChildRenderObjectWidget], if the widget organizes its
18841884
/// children in different named slots.

0 commit comments

Comments
 (0)