From 302640a391a8049df8be7f0a8494763d41ff70cd Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 16 Feb 2016 11:09:23 -0800 Subject: [PATCH] Improve the sample code for createState The previous sample code isn't a common (or recommended) pattern. --- 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 53e47e4bd5..0311acfc4f 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -274,7 +274,7 @@ abstract class StatefulComponent extends Widget { /// override this to return a new instance of the State class associated with /// this StatefulComponent class, like this: /// - /// MyState createState() => new MyState(this); + /// _MyState createState() => new _MyState(); State createState(); }