Flutter: After flutter 1.22 update, I am getting error in Lineargradient properties [closed]
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.
Run flutter clean and then restart your IDE. I use Visual Studio Code and it worked for me...