Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: After flutter 1.22 update, I am getting error in Lineargradient properties [closed]

Tags:

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.enter image description here

like image 374
Arsalan Umer Avatar asked Oct 02 '20 08:10

Arsalan Umer


2 Answers

run flutter clean command and restart IDE worked for me

like image 185
Ashraful Avatar answered Oct 06 '22 00:10

Ashraful


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.

like image 31
Kise Avatar answered Oct 05 '22 23:10

Kise