Add a Key to FlutterDemo widget

It's a good practice to let clients supply a key for every widget.

Fixes #2910
This commit is contained in:
Adam Barth 2016-03-26 14:00:25 -07:00
parent b006ca556d
commit 2a0f691c9f

View file

@ -20,6 +20,8 @@ void main() {
}
class FlutterDemo extends StatefulWidget {
FlutterDemo({ Key key }) : super(key: key);
@override
_FlutterDemoState createState() => new _FlutterDemoState();
}