You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the tutorial of MDC-103 to include the AsymmetricView, and I got the following error:
lib/home.dart:47:38: Error: A value of type 'dart.core::List<#lib1::Product>' can't be assigned to a variable of type 'dart.core::List<#lib2::Product>'.
There is an error in the tutorial. To solve it, we simply need to change the import of the AsymmetricView to:
Thanks for reporting this! Out of curiosity, if you remove the change you created in home.dart and instead change the import in main.dart for app.dart to package:Shrine/app.dart, does that also fix the issue? This seems to be the fix recommended by dart-lang/sdk#33076.
I've added the import fix in main.dart to all codelabs, because it seems to be the recommended solution per the Dart issue above. Thanks again for reporting this, and please let me know if you have any problems with/questions about this fix!
I followed the tutorial of MDC-103 to include the AsymmetricView, and I got the following error:
lib/home.dart:47:38: Error: A value of type 'dart.core::List<#lib1::Product>' can't be assigned to a variable of type 'dart.core::List<#lib2::Product>'.
There is an error in the tutorial. To solve it, we simply need to change the import of the AsymmetricView to:
import 'package:Shrine/supplemental/asymmetric_view.dart';
Now it works flawlessly.
The text was updated successfully, but these errors were encountered: