Page URL
https://docs.flutter.dev/learn/pathway/tutorial/widget-fundamentals
Page source
https://github.com/flutter/website/blob/main/src/content/learn/pathway/tutorial/widget-fundamentals.md
Describe the problem
When downloading the game.dart file into the directory, the tutorial starts to costumize the main.dart file. However around Step 6: Child Widgets the tutorial says to hot restart. But there is no import reference to the game.dart so the constant 'HitType' is unknown.
Expected fix
A line in the code on the main.dart file should be added: 'import 'game.dart';'
Additional context
No response
I would like to fix this problem.
Page URL
https://docs.flutter.dev/learn/pathway/tutorial/widget-fundamentals
Page source
https://github.com/flutter/website/blob/main/src/content/learn/pathway/tutorial/widget-fundamentals.md
Describe the problem
When downloading the game.dart file into the directory, the tutorial starts to costumize the main.dart file. However around Step 6: Child Widgets the tutorial says to hot restart. But there is no import reference to the game.dart so the constant 'HitType' is unknown.
Expected fix
A line in the code on the main.dart file should be added: 'import 'game.dart';'
Additional context
No response
I would like to fix this problem.