From b8211b3d941f2dcaa2db22e4572b74ede620cced Mon Sep 17 00:00:00 2001 From: Samuel Wrenn Date: Tue, 25 Jun 2024 13:45:55 -0400 Subject: [PATCH] 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. --- packages/flutter/lib/src/widgets/framework.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 9a7abbd7573..90b71ecaa86 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -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.