Isabela Castilho
Isabela Castilho

Reputation: 83

Flutter doesn't recognize it's own widget named parameters after updating

I was developing a project on my laptop and moved to my desktop, so I got some errors. I updated flutter and after that, I get this warning:

    for (Offset center in scaleHandles) {
      handles.add(Rect.fromCircle(center: center, radius: r));
    }

"The named parameter 'center' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'center'.dartundefined_named_parameter" When I hover over "fromCircle" I get this tip "Rect Rect.fromCircle({dynamic Offset})". That doesn't make any sense! The official docs also state that a Rect from a circle takes CENTER and RADIUS. What's going on????

enter image description here

Upvotes: 3

Views: 2297

Answers (1)

Jordan Kotiadis
Jordan Kotiadis

Reputation: 566

You will just need to run in your terminal the following commands

flutter clean
flutter pub get

and then you may need to restart your editor

Upvotes: 7

Related Questions