material-components / material-components-flutter-codelabs

Codelabs for Material Components for Flutter
212 stars 244 forks source link

kShrinePurple is not defined #257

Closed obumnwabude closed 2 years ago

obumnwabude commented 3 years ago

When Trying another theme at the 9th step of the MDC 103 Flutter codelab, VS Code reports the following error

Undefined name 'kShrinePurple'. Try correcting the name to one that is defined, or defining the name

However, when I append const kShrinePurple = Color(0xFF5D1094); to the colors.dart file, the error disappears and the new theme reflects.

But then the instruction to add/set the purple primary color is not in this 9th step of the codelab. Please add the instruction to help others that will be subsequently be taking the codelab.

Griizz commented 2 years ago

Can confirm this issue.

halilakcan commented 2 years ago

And also kShrineBlack isn't defined in colors.dart file too.

In colors.dart, add the following line; const kShrineBlack = Colors.black;

guidezpl commented 2 years ago

Thanks for flagging, this will be fixed shortly