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:
@@ -20,6 +20,8 @@ void main() {
|
||||
}
|
||||
|
||||
class FlutterDemo extends StatefulWidget {
|
||||
FlutterDemo({ Key key }) : super(key: key);
|
||||
|
||||
@override
|
||||
_FlutterDemoState createState() => new _FlutterDemoState();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user