diff --git a/packages/flutter_markdown/example/demo.dart b/packages/flutter_markdown/example/demo.dart index 7877fe2b0d..ceb9e482a6 100644 --- a/packages/flutter_markdown/example/demo.dart +++ b/packages/flutter_markdown/example/demo.dart @@ -21,7 +21,7 @@ You can use [hyperlinks](hyperlink) in markdown ## Code blocks Formatted Dart code looks really pretty too. This is an example of how to create your own Markdown widget: - new Markdown(data: "Hello _world_!"); + new Markdown(data: 'Hello _world_!'); Enjoy! """; @@ -29,11 +29,9 @@ Enjoy! void main() { runApp(new MaterialApp( title: "Markdown Demo", - routes: { - '/': (BuildContext context) => new Scaffold( - appBar: new AppBar(title: new Text("Markdown Demo")), - body: new Markdown(data: _kMarkdownData) - ) - } + home: new Scaffold( + appBar: new AppBar(title: new Text('Markdown Demo')), + body: new Markdown(data: _kMarkdownData) + ) )); }