From f012a0fdfb8f232e22443a26e7d112e7a69a4d55 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 24 May 2016 16:34:51 -0700 Subject: [PATCH] Document that State#build(BuildContext context) is always the same as State#context (#4116) Fixes #4114 --- packages/flutter/lib/src/widgets/framework.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 45f1cdb348..188a819cac 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -461,6 +461,10 @@ abstract class State { /// The given build context object contains information about the location in /// the tree at which this widget is being built. For example, the context /// provides the set of inherited widgets for this location in the tree. + /// + /// The context argument is always the same as [State.context]. This argument + /// is provided redundantly here to match the [WidgetBuilder] function + /// signature used by [StatelessWidget.build] and other widgets. Widget build(BuildContext context); /// Called when an Inherited widget in the ancestor chain has changed. Usually