Fix analyzer warnings

Fix some legit uses of GlobalKey to specify the type they want.



Fix some sketchy uses of GlobalKey in tests to fake it with "as

dynamic".



Remove some extraneous imports that made the build red.
This commit is contained in:
Ian Hickson
2016-04-06 14:14:34 -07:00
parent 7ab122e557
commit 798dfa2bc9
4 changed files with 25 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ class TabsFabDemo extends StatefulWidget {
}
class _TabsFabDemoState extends State<TabsFabDemo> {
final GlobalKey scaffoldKey = new GlobalKey();
final GlobalKey<ScaffoldState> scaffoldKey = new GlobalKey<ScaffoldState>();
final List<_Page> pages = <_Page>[
new _Page(label: 'Blue', colors: Colors.indigo, icon: Icons.add),
new _Page(label: 'Eco', colors: Colors.green, icon: Icons.create),