From 4443e949c749e10314359ae50168101cac99bde8 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 15 Oct 2015 22:11:45 -0700 Subject: [PATCH] Fix build errors in tutorial Fixes https://github.com/flutter/engine/issues/1599 --- tutorial.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tutorial.md b/tutorial.md index 81479e78e9..374b4087aa 100644 --- a/tutorial.md +++ b/tutorial.md @@ -92,14 +92,13 @@ ratio in which they consume the available space using the `flex` argument to To use this component, we simply create an instance of `MyToolBar` in a `build` function: - + ```dart -import 'package:flutter/material.dart'; - -import 'my_tool_bar.dart'; - -class DemoHome extends StatelessComponent { - Widget build() { +class TutorialHome extends StatelessComponent { + Widget build(BuildContext context) { return new Center(child: new MyToolBar()); } } @@ -108,7 +107,7 @@ void main() { runApp(new MaterialApp( title: 'Tutorial app', routes: { - '/', (NavigatorState navigator, Route route) => new DemoHome(); + '/': (RouteArguments args) => new TutorialHome() } )); }