Skip to content

Commit c76667b

Browse files
authored
Fixed a wrong reference (#2226)
The new line referred to in line 177 was added to the StopwatchApp class, not the Stopwatch class.
1 parent 5c514b0 commit c76667b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ The Button constructor takes a label to be displayed in the button (`"Start"`, `
174174

175175
To add widgets to our application we first need to yield them from the app's `compose()` method:
176176

177-
The new line in `Stopwatch.compose()` yields a single `Container` object which will create a scrolling list of stopwatches. When classes contain other widgets (like `Container`) they will typically accept their child widgets as positional arguments. We want to start the app with three stopwatches, so we construct three `Stopwatch` instances and pass them to the container's constructor.
177+
The new line in `StopwatchApp.compose()` yields a single `Container` object which will create a scrolling list of stopwatches. When classes contain other widgets (like `Container`) they will typically accept their child widgets as positional arguments. We want to start the app with three stopwatches, so we construct three `Stopwatch` instances and pass them to the container's constructor.
178178

179179

180180
### The unstyled app

0 commit comments

Comments
 (0)