Merge pull request #332 from Hixie/flutter-analyze

flutter analyze command
This commit is contained in:
Ian Hickson
2015-11-12 12:28:48 -08:00
30 changed files with 451 additions and 170 deletions

View File

@@ -124,7 +124,7 @@ class FitnessAppState extends State<FitnessApp> {
});
}
Widget build(BuildContext) {
Widget build(BuildContext context) {
return new MaterialApp(
theme: new ThemeData(
brightness: ThemeBrightness.light,

View File

@@ -38,7 +38,7 @@ final ThemeData _theme = new ThemeData(
);
class TestAppState extends State<TestApp> {
TestApp() {
TestAppState() {
_testBed = new TestBed(_labelTexts[_selectedLine]);
}

View File

@@ -44,10 +44,10 @@ class TabbedNavigatorAppState extends State<TabbedNavigatorApp> {
TabNavigator _buildIconLabelsTabNavigator(int n) {
Iterable<TabNavigatorView> views = ["event", "home", "android", "alarm", "face", "language"]
.map((icon_name) {
.map((String iconName) {
return new TabNavigatorView(
label: new TabLabel(icon: "action/$icon_name"),
builder: (BuildContext context) => _buildContent(icon_name)
label: new TabLabel(icon: "action/$iconName"),
builder: (BuildContext context) => _buildContent(iconName)
);
});
return _buildTabNavigator(n, views.toList(), const ValueKey<String>('iconLabelsTabNavigator'));