From 29f15fad676da7e39faa03f16baeba452a03b30b Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Fri, 13 Mar 2026 03:37:25 +0800 Subject: [PATCH] Fix challenge issues on fwe layout tutorial --- src/content/learn/pathway/tutorial/layout.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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});