2

I did a stupid mistake unknowingly and now i've got like 1k+ errors after running the command flutter clean

Is there any way to undo this.

Deleting build...                                                  606ms
Deleting .dart_tool...                                              7.3s
Deleting .packages...                                               28ms
Deleting Generated.xcconfig...                                       3ms
Deleting flutter_export_environment.sh...                            1ms
Deleting .flutter-plugins-dependencies...                            1ms
Deleting .flutter-plugins...                                         1ms
1
  • Try running the code once. It'll create required meta data and download needed packages and the errors will be gone. Apr 7, 2022 at 9:59

2 Answers 2

9

Run flutter pub get, it'll reload the packages

3
  • Does this require internet ?
    – Patiee
    Apr 7, 2022 at 10:07
  • Not really required. Apr 7, 2022 at 10:09
  • actually you do need internet. Apr 7, 2022 at 10:23
3

Just run flutter pub get and you'll be good to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.