dwyl / learn-flutter

🦋 Learn how to use Flutter to Build Cross-platform Native Mobile Apps
https://flutter.dev
GNU General Public License v2.0
73 stars 8 forks source link

Flutter Extensions Error #46

Closed miguelmartins17 closed 1 year ago

miguelmartins17 commented 4 years ago

While I was working on the tutorial notes Visual Studio updated Flutter and now all the extensions have errors, I don't know how to solve this since all the pages have errors in the extensions.

Screen Shot 2020-02-27 at 11 14 58

Screen Shot 2020-02-27 at 11 24 46

Screen Shot 2020-02-27 at 11 23 52

miguelmartins17 commented 4 years ago

@nelsonic One more update this time on the extensions package, I hope it helps.

Screen Shot 2020-02-28 at 09 02 05

nelsonic commented 4 years ago

@miguelmartins17 whenever you are faced with upgrades, you should log the version you currently have on your machine and the new version you are upgrading to (in a GitHub comment). That will help you narrow the search when things do go according to plan.

miguelmartins17 commented 4 years ago

This is the error that appears to me, so I searched for that same error in stackoverflow and this page appeared to me that could be useful for my problem.

https://stackoverflow.com/questions/53756164/missing-concrete-implementation-of-getter-and-setter

miguelmartins17 commented 4 years ago

How does Override interact with the created methods?

miguelmartins17 commented 4 years ago

https://stackoverflow.com/questions/30274107/how-can-a-missing-concrete-implementation-warning-be-suppressed

miguelmartins17 commented 4 years ago

I've already got three, the others are missing.

Screen Shot 2020-02-28 at 10 35 10

nelsonic commented 4 years ago

@miguelmartins17 looks like good progress. 👍 it's really good that you are facing these challenges now. Sadly when you are building things in the real world, there is no complete manual with all the steps and new hurdles will always appear. Practicing solving challenges you haven't seen before is essential. 👍

miguelmartins17 commented 4 years ago

@nelsonic Today I've been working on trying to get all the tests back through without mistakes, I've already got some but there are still others missing.

Screen Shot 2020-02-29 at 20 19 54

nelsonic commented 4 years ago

@miguelmartins17 cool. This might feel tedious, but it is very valuable experience! Updating/maintaining code is one of the biggest jobs in software. People who expect it to be only building new features are always surprised. Having to fix code when it "breaks" teaches us to write simpler more maintainable code. 💭

miguelmartins17 commented 4 years ago

@miguelmartins17 I don't think I can use nosuchmethod( ) here because it takes away the function that was supposed to be doing the code.

Screen Shot 2020-03-01 at 11 56 17

miguelmartins17 commented 4 years ago

@nelsonic NoSuchMethod always indicates wrong loading of classes or versions.

So it means that right away I must have an error and since I tried to use NoSuchMethod to fix it got even worse what I'm going to do is delete NoSuchMethod and search for the error solution in Google.

nelsonic commented 4 years ago

@miguelmartins17 that sounds like a more good approach. 👍

miguelmartins17 commented 4 years ago

@nelsonic One of the solutions you could use and through the quick fix of Visual Studio. One of the options is to write the override that is not present. I've been writing and now almost all the tests pass, except three of them.

Screen Shot 2020-03-02 at 16 56 59