Flutter The named parameter 'colors' isn't defined in SweepGradient
This happened to me as well after I upgraded to the latest stable flutter version 1.12. I fixed it doing following:
- Type in terminal: flutter clean
- Under File --> Invalidate Caches / Restart (click this option)
Afterwards everything worked like a charm again.