0

If I clean my Flutter project (Android Studio), double is fine. I must do a pub get to get all the classes I am using. After the pub get double is not a type anymore. A few doubles are all right but most are an undefined error.

The implication is that one of the libraries in the pub get is messing up the basic double type.

I hope to get some recommendations on how to figure out this problem.

Where are the libraries that pub get retrieves? Are they simply files I can rename to avoid the pub get to figure out the offender?

Thanks for any help.

George
  • 307
  • 1
  • 5
  • 12
  • Can you provide some more specific examples? Like what libraries this is happening or the message error – Alex Rintt Oct 05 '21 at 21:34
  • You can refer to https://stackoverflow.com/questions/19723063/what-is-the-difference-between-show-and-as-in-an-import-statement to avoid class name duplication if it is your case – Alex Rintt Oct 05 '21 at 21:44

1 Answers1

0

To fix some previous issue I added a line that altered double behavior a long time ago. Updating Flutter and Dart did not like the line and considered double invalid. Removing the line fixed the problem. I found the line by looking at all the errors, and fortunately, the line was included in the error list.

Of course, I now wish I could recall what issue the line was handling. Sometimes a good comment is a nice idea.

George
  • 307
  • 1
  • 5
  • 12