try updating your pubspec.yaml to set the minimum sdk constraint to 2.12.0 or higher, and running 'pub get
By Space Scooter at Jul 14 2021