From 17a9343a4160b54c02e60e2cd6a75b68cfc10c30 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 12 Oct 2015 19:16:11 -0700 Subject: [PATCH 1/2] fix up the remaining snippet issues --- tutorial.md | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/tutorial.md b/tutorial.md index cb6f8dc3f9..1e2e4948cb 100644 --- a/tutorial.md +++ b/tutorial.md @@ -210,8 +210,8 @@ example, we can put an elaborate layout involving text and an image inside the button: ```dart @@ -247,8 +247,13 @@ checkbox several times before closing the dialog and committing the final value of the checkbox to the underlying application data model. ```dart @@ -396,12 +401,17 @@ can be used to retrieve the state associated with a widget. Consider the following example: ```dart @@ -443,12 +453,10 @@ around in the widget tree. Useful debugging tools ---------------------- -This is a quick way to dump the entire widget tree to the console. -This can be quite useful in figuring out exactly what is going on when -working with the widgets system. For this to work, you have to have -launched your app with `runApp()`. +This is a quick way to dump the entire widget tree to the console. This can be +quite useful in figuring out exactly what is going on when working with the +widgets system. - ```dart -debugDumpApp(); +void dumpWidgetTree() => debugDumpApp(); ``` From f4a0f7271363cabd6f9cbee59b2e82a0b05fbd65 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 12 Oct 2015 21:02:29 -0700 Subject: [PATCH 2/2] don't analyze the debugDumpApp() snippet --- tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial.md b/tutorial.md index 1e2e4948cb..81479e78e9 100644 --- a/tutorial.md +++ b/tutorial.md @@ -457,6 +457,6 @@ This is a quick way to dump the entire widget tree to the console. This can be quite useful in figuring out exactly what is going on when working with the widgets system. -```dart -void dumpWidgetTree() => debugDumpApp(); +``` +debugDumpApp(); ```