After the flutter 1.22 update, I am getting an error in Lineargradient colors property it's giving me an error that the name colors parameter isn't defined..I am getting this error everywhere in the project after the update of flutter and flutter plugin in android studio.
run flutter clean
command and restart IDE worked for me
Restarting your Android Studio should fix this issue. This is because in Dart 2.10, required
becomes a keyword (previously was @required
). The IDE probably doesn't recognize that you've updated the Dart SDK.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With