mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
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:
parent
b006ca556d
commit
2a0f691c9f
|
@ -20,6 +20,8 @@ void main() {
|
|||
}
|
||||
|
||||
class FlutterDemo extends StatefulWidget {
|
||||
FlutterDemo({ Key key }) : super(key: key);
|
||||
|
||||
@override
|
||||
_FlutterDemoState createState() => new _FlutterDemoState();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue