mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix link in RenderObjectWidget doc comment (#150600)
Fix a link in the `RenderObjectWidget` doc comment. The comment recommends subclassing `SingleChildRenderObjectElement` where it means to recommend subclassing `SingleChildRenderObjectWidget`. Fixes #150597.
This commit is contained in:
parent
a7967703cd
commit
b8211b3d94
@ -1878,7 +1878,7 @@ abstract class InheritedWidget extends ProxyWidget {
|
||||
/// object widgets subclass one of:
|
||||
///
|
||||
/// * [LeafRenderObjectWidget], if the widget has no children.
|
||||
/// * [SingleChildRenderObjectElement], if the widget has exactly one child.
|
||||
/// * [SingleChildRenderObjectWidget], if the widget has exactly one child.
|
||||
/// * [MultiChildRenderObjectWidget], if the widget takes a list of children.
|
||||
/// * [SlottedMultiChildRenderObjectWidget], if the widget organizes its
|
||||
/// children in different named slots.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user