Skip to content

Possible depreciated code being used. #13162

@mattj518

Description

@mattj518

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.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

Labels

a.tut.tutorialRelates to the Tutorial section of docs.flutter.devfrom.page-issueReported in a reader-filed concernp1-highMajor but not urgent concern: Resolve in months. Update each month.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions