Commit 2a0f691c authored by Adam Barth's avatar Adam Barth

Add a Key to FlutterDemo widget

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

Fixes #2910
parent b006ca55
......@@ -20,6 +20,8 @@ void main() {
}
class FlutterDemo extends StatefulWidget {
FlutterDemo({ Key key }) : super(key: key);
@override
_FlutterDemoState createState() => new _FlutterDemoState();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment