diff --git a/src/content/learn/pathway/tutorial/layout.md b/src/content/learn/pathway/tutorial/layout.md index 70f053ab14..3284f179a6 100644 --- a/src/content/learn/pathway/tutorial/layout.md +++ b/src/content/learn/pathway/tutorial/layout.md @@ -116,12 +116,11 @@ class GamePage extends StatelessWidget { } ``` -:::note Challenge - Display the `GamePage` rather than a `Tile`. - -**Solution:** +Then update your `MainPage` widget to create and +display a `GamePage` widget instead of "Hello World!". -```dart title="solution.dart" collapsed +```dart highlightLines=11 class MainApp extends StatelessWidget { const MainApp({super.key}); @@ -139,8 +138,6 @@ class MainApp extends StatelessWidget { } ``` -::: - ### Arrange widgets with `Column` and `Row` The `GamePage` layout contains the grid of tiles that display a user's guesses. @@ -251,7 +248,7 @@ The `guess` variable in the loop is a [record][] with the type **Solution:** -```dart +```dart title="lib/main.dart" collapsed class GamePage extends StatelessWidget { GamePage({super.key});