Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[linter][prefer_const_constructors] miss opportunity #59788

Open
stephane-archer opened this issue Dec 21, 2024 · 0 comments
Open

[linter][prefer_const_constructors] miss opportunity #59788

stephane-archer opened this issue Dec 21, 2024 · 0 comments
Labels
analyzer-linter Issues with the analyzer's support for the linter package area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. linter-false-negative

Comments

@stephane-archer
Copy link

class _FavoriteFoldersLoadingWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return const Center(
      child: CupertinoActivityIndicator(),
    );
  }
}

should suggest

class _FavoriteFoldersLoadingWidget extends StatelessWidget {

 const _FavoriteFoldersLoadingWidget();

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: CupertinoActivityIndicator(),
    );
  }
}
@stephane-archer stephane-archer added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Dec 21, 2024
@bwilkerson bwilkerson added analyzer-linter Issues with the analyzer's support for the linter package linter-false-negative labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-linter Issues with the analyzer's support for the linter package area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. linter-false-negative
Projects
None yet
Development

No branches or pull requests

2 participants