provider 状态管理demo

fish d78641e965 1 9 months ago
android bb85bd983b 0 9 months ago
assets 40a5cf9617 0 1 year ago
ios daf98ba06d init 1 year ago
lib d78641e965 1 9 months ago
test daf98ba06d init 1 year ago
web daf98ba06d init 1 year ago
.gitignore daf98ba06d init 1 year ago
.metadata daf98ba06d init 1 year ago
README.md 5b8c847e72 Update 'README.md' 1 year ago
analysis_options.yaml daf98ba06d init 1 year ago
pubspec.lock bb85bd983b 0 9 months ago
pubspec.yaml 8ce47bfab3 0 1 year ago

README.md

flutter_provider_demo

provider 状态管理demo

Develop

flutter build apk

说明

1、导入 provider包 2、main.dart中添加 MultiProvider 3、创建model层,proveder层的ChangeNotifier类

参考

https://github.com/OpenFlutter/flutter_database_demo