material-components / material-components-flutter-codelabs

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

MDC-104 Flutter:Material Advanced Components - Add a branded icon - Error #296

Closed arromero4 closed 9 months ago

arromero4 commented 9 months ago

When we create a new class _BackdropTitle. IDE shows an error in this line child: const ImageIcon(AssetImage('assets/slanted_menu.png')), image

it should be child: const ImageIcon(AssetImage('/slanted_menu.png')) image

guidezpl commented 9 months ago

Can you please share the error? I'm not getting an error with this code in the 104-complete branch

arromero4 commented 9 months ago

I'll close the issue I finished the codelab I can't see the error again.