-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Possible depreciated code being used. #13162
Copy link
Copy link
Closed
Labels
a.tut.tutorialRelates to the Tutorial section of docs.flutter.devRelates to the Tutorial section of docs.flutter.devfrom.page-issueReported in a reader-filed concernReported in a reader-filed concernp1-highMajor but not urgent concern: Resolve in months. Update each month.Major but not urgent concern: Resolve in months. Update each month.
Metadata
Metadata
Labels
a.tut.tutorialRelates to the Tutorial section of docs.flutter.devRelates to the Tutorial section of docs.flutter.devfrom.page-issueReported in a reader-filed concernReported in a reader-filed concernp1-highMajor but not urgent concern: Resolve in months. Update each month.Major but not urgent concern: Resolve in months. Update each month.
Page URL
https://docs.flutter.dev/learn/pathway/tutorial/devtools
Page source
https://github.com/flutter/website/blob/main/src/content/learn/pathway/tutorial/devtools.md
Describe the problem
Starting with this page of the tutorial, the class Tile starts using "required" on the class constructor. I believe this was depreciated. At least on my version of dart (3.11.1) it kicks out and error (Can't have modifier 'required' here. Try removing 'required'.)
'required' wasn't in the earlier examples of this class.
I'm new to Dart and Flutter (I come from a bare metal C programming background) so I could be wrong on this. It's new to me which is why I'm going through the tutorial.
Expected fix
'required' should be removed from source code examples in the class Tile so it will run / compile
Additional context
No response
I would like to fix this problem.