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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user