londonappbrewery / quizzler-flutter

Learn to Code While Building Apps - The Complete Flutter Development Bootcamp
https://www.appbrewery.co
196 stars 869 forks source link

type 'List<dynamic>' is not a subtype of type 'List<Icon>' of 'function result' #20

Open Subhradeep10 opened 3 years ago

Subhradeep10 commented 3 years ago

Capture

dionvansevenant commented 3 years ago

I encountered this, too. Seems like it might be a Flutter v2 thing, with stricter checking. But also, from the Udemy course Q&A section someone suggested running the Build again. That worked for me.

AkshaySiddannavar commented 2 years ago

In case it is a Flutter v2 thing where Flutter is stricter then you can use List<Widget> instead of List<Icon> I too faced similar problem this worked for me.

danmooney commented 1 year ago

Changing to List<Widget> without restarting the app raised the same issue. Restart was mandatory to get icons to work using List<Widget>.