You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Meta-issue: Update all code to use optional new/const #18604
Tracking issue for updating all our Flutter example code to use optional new/const (now that we are unblocked by the needed lint dart-lang/sdk#32602 being available):
unnecessary new/const have been removed from flutter/flutter, flutter/plugins and soon in flutter/packages.
On flutter.io the only remaining place with new/const seems to be in images like on home page at the Fast development section.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
a14n commentedon Jun 19, 2018
Actually it's still blocked by dart-lang/sdk#57706 and dart-lang/sdk#57712
mit-mit commentedon Jun 20, 2018
Thanks, I reactivated dart-lang/sdk#32596
pq commentedon Jun 26, 2018
@a14n : once the new linter makes it's way into a vended SDK will we be good to make these changes?
a14n commentedon Jun 27, 2018
I tried to remove unnecessary new/const from flutter codebase and faced a new issue in analyzer dart-lang/sdk#33647
a14n commentedon Jul 16, 2018
Optional const landed in #19342
pq commentedon Jul 16, 2018
@a14n: this is fantastic. Remind me the plan for
unnecessary_new?mit-mit commentedon Aug 6, 2018
@a14n do we have the no new lint?
a14n commentedon Aug 6, 2018
unnecessary_constlanded with #20103 and flutter-team-archive/plugins#682.unnecessary_newis waiting for reviews with #20138 and flutter-team-archive/plugins#701.a14n commentedon Oct 5, 2018
unnecessary new/const have been removed from
flutter/flutter,flutter/pluginsand soon influtter/packages.On flutter.io the only remaining place with new/const seems to be in images like on home page at the Fast development section.
mit-mit commentedon Oct 8, 2018
Excellent! I'll make sure with @maguinis that we get all images updated!
mit-mit commentedon Oct 15, 2018
Marking flutter/packages done as flutter/packages#4 was merged
mit-mit commentedon Oct 15, 2018
Assigning to self as only item left is updating images on flutter.io
a14n commentedon Oct 15, 2018
Actually there's still flutter-team-archive/plugins#818
mit-mit commentedon Nov 14, 2018
This should be done now
github-actions commentedon Sep 1, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.