I am developing a flutter project, but I get this error and I don't know how to solve
You would need to update your flutter sdk in pubspec.yaml to:
pubspec.yaml
environment: sdk: '>=2.12.0 <3.0.0'