Skip to content
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

ChangeNotify + Provider example run in flutter 2.0 #205

Open
longfit opened this issue Jun 9, 2021 · 0 comments
Open

ChangeNotify + Provider example run in flutter 2.0 #205

longfit opened this issue Jun 9, 2021 · 0 comments

Comments

@longfit
Copy link

longfit commented Jun 9, 2021

How to fix below problem

ChangeNotify cannot run in flutter 2.0

/home/ykwings/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/lib/shared_preferences.dart:146:15: Error: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'.

  • 'MethodChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/home/ykwings/flutter/packages/flutter/lib/src/services/platform_channel.dart').
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

1 participant