【文件属性】:
文件名称:flutter-redux-machine:将redux_machine与Flutter集成
文件大小:13KB
文件格式:ZIP
更新时间:2021-04-29 00:41:30
redux flutter dartlang Dart
集成和Flutter。
商店访问
一个InheritedWidget ,它提供对应用程序状态存储的访问。
class MyApp extends StatelessWidget {
Widget build ( BuildContext ) {
final store = buildStore ();
return new StoreAccess (
store : store,
child : new MaterialApp ( /* .. */ ),
);
}
}
class MyWidget extends StatelessWidget {
Widget build ( BuildContext ) {
final store = StoreAccess . of (context);
return ne
【文件预览】:
flutter-redux-machine-master
----pubspec.yaml(380B)
----lib()
--------flutter_redux_machine.dart(6KB)
----.travis.yml(547B)
----example()
--------main.dart(4KB)
----LICENSE(1KB)
----test()
--------store_access_test.dart(2KB)
--------store_connected_state_test.dart(2KB)
--------store_connected_widget_test.dart(1KB)
--------app.dart(2KB)
----README.md(7KB)
----analysis_options.yaml(309B)
----.gitignore(234B)
----CHANGELOG.md(367B)