Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<!-- skip -->
<!--
class MyToolBar extends ToolBar {
}
-->
```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());
}
}
Expand All @@ -108,7 +107,7 @@ void main() {
runApp(new MaterialApp(
title: 'Tutorial app',
routes: {
'/', (NavigatorState navigator, Route route) => new DemoHome();
'/': (RouteArguments args) => new TutorialHome()
}
));
}
Expand Down