flutter_built_redux:Flutter的Built_redux提供程序

  • O5_143133
    了解作者
  • 13.2KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-08 07:56
    上传日期
flutter_built_redux:Flutter的Built_redux提供程序
flutter_built_redux-master.zip
  • flutter_built_redux-master
  • .travis.yml
    429B
  • example
  • example.dart
    3KB
  • example.g.dart
    3KB
  • analysis_options.yaml
    78B
  • test
  • unit
  • test_widget.dart
    3.3KB
  • flutter_built_redux_test.dart
    4.7KB
  • test_models.dart
    1001B
  • test_models.g.dart
    3.6KB
  • tool
  • build.dart
    625B
  • LICENSE.md
    1KB
  • .gitignore
    136B
  • pubspec.yaml
    554B
  • CHANGELOG.md
    1KB
  • lib
  • flutter_built_redux.dart
    6.8KB
  • README.md
    2.1KB
内容介绍
[![Pub](https://img.shields.io/pub/v/flutter_built_redux.svg)](https://pub.dartlang.org/packages/flutter_built_redux) [![codecov.io](http://codecov.io/github/davidmarne/flutter_built_redux/coverage.svg?branch=master)](http://codecov.io/github/davidmarne/flutter_built_redux?branch=master) # flutter_built_redux [built_redux] bindings for Flutter. By creating a Widget that extends StoreConnector you get automatic subscribing to your redux store, and you component will only call setState when the store triggers and the values you take from the store in connect change! ## Examples [counter example](example/example.dart) [todo_mvc], written by [Brian Egan] ## Why you may need flutter_built_redux For the same reason you would want to use redux with react. from the flutter tutorial: > In Flutter, change notifications flow “up” the widget hierarchy by way of callbacks, while current state flows “down” to the stateless widgets that do presentation. Following this pattern requires you to send any state or state mutator callbacks that are common between your widgets down from some common ancestor. With larger applications this is very tedious, leads to large widget constructors, and this pattern causes flutter to rerun the build function on all widgets between the ancestor that contains the state and the widget that actually cares about it. It also means your business logic and network requests live in your widget declarations. [built_redux] gives you a predicable state container that can live outside your widgets and perform logic in action middleware. flutter_built_redux lets a widget to subscribe to the pieces of the redux state tree that it cares about. It also lets lets widgets dispatch actions to mutate the redux state tree. This means widgets can access and mutate application state without the state and state mutator callbacks being passed down from its ancestors! [built_redux]: https://github.com/davidmarne/built_redux [todo_mvc]: https://gitlab.com/brianegan/flutter_architecture_samples/tree/master/example/built_redux [Brian Egan]: https://gitlab.com/brianegan
评论
    相关推荐
    • flutter
      flutter
    • Flutter
      Flutter
    • flutter
      flutter
    • Flutter
      Flutter
    • flutter
      flutter
    • flutter
      一个新的Flutter项目。 入门 该项目是Flutter应用程序的起点。 如果这是您的第一个Flutter项目,那么有一些资源可以帮助您入门: 要获得Flutter入门方面的帮助,请查看我们的,其中提供了教程,示例,有关移动开发...