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

代码缺少实现 ChangeNotifier 类 #4

Open
jsonz1993 opened this issue Oct 17, 2019 · 1 comment
Open

代码缺少实现 ChangeNotifier 类 #4

jsonz1993 opened this issue Oct 17, 2019 · 1 comment

Comments

@jsonz1993
Copy link

jsonz1993 commented Oct 17, 2019

7.3 跨组件状态共享(Provider)的时候发现跑不了,来跑代码,拉下来之后发现项目里面好像缺少实现 ChangeNotifier

Undefined class 'ChangeNotifier'.
Try changing the name to the name of an existing class, or creating a class with the name 'ChangeNotifier'.

基于这个commit的最新代码 commit

@bdpqchen
Copy link

可能是版本的太低的问题, 我的是有的, 在包 flutter/packages/flutter/lib/src/foundation 下,
我的版本是
environment:
sdk: ">=2.1.0 <3.0.0"

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

2 participants