Skip to content

MDC-103 AsymmetricView not working #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
polmp opened this issue Jul 23, 2018 · 3 comments
Closed

MDC-103 AsymmetricView not working #82

polmp opened this issue Jul 23, 2018 · 3 comments
Assignees

Comments

@polmp
Copy link

polmp commented Jul 23, 2018

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.

@michdud
Copy link
Contributor

michdud commented Jul 23, 2018

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.

@polmp
Copy link
Author

polmp commented Jul 23, 2018

Yes, if we maintain the original import and change the one of main.dart for
import 'package:Shrine/app.dart';

Seems solved too

@michdud
Copy link
Contributor

michdud commented Jul 24, 2018

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!

@michdud michdud closed this as completed Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants