Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions src/content/learn/pathway/tutorial/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!".

<?code-excerpt "fwe/birdle/lib/step3_main.dart (MainApp)"?>
```dart title="solution.dart" collapsed
```dart highlightLines=11
class MainApp extends StatelessWidget {
const MainApp({super.key});

Expand All @@ -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.
Expand Down Expand Up @@ -251,7 +248,7 @@ The `guess` variable in the loop is a [record][] with the type
**Solution:**

<?code-excerpt "fwe/birdle/lib/step3_main.dart (GamePage)"?>
```dart
```dart title="lib/main.dart" collapsed
class GamePage extends StatelessWidget {
GamePage({super.key});

Expand Down
Loading