Home > OS >  The getter 'password' isn't defined for the type 'Icons'
The getter 'password' isn't defined for the type 'Icons'

Time:01-31

The icons I selected appear to be undefined even though they are in the class. What is the reason for this?

Icon(
    Icons.password,
    color: iconColor,
    )

enter image description here

CodePudding user response:

Check if in your pubspec.yaml the section uses-material-design is set to true.

CodePudding user response:

Open your cmd or android studio terminal and type[flutter doctor, then flutter doctor --android-licenses] and accept all of the licenses that terminal suggest you.

  •  Tags:  
  • Related