blocs

所属分类:Dart语言编程
开发工具:Dart
文件大小:0KB
下载次数:0
上传日期:2020-01-16 10:18:26
上 传 者sh-1993
说明:  React编程-BLoC-实际用例_和_模式
(Reactive Programming - BLoC - Practical Use Cases _and_ Patterns)

文件列表:
.metadata (287, 2020-01-16)
LICENSE (1063, 2020-01-16)
android/ (0, 2020-01-16)
android/app/ (0, 2020-01-16)
android/app/build.gradle (1866, 2020-01-16)
android/app/src/ (0, 2020-01-16)
android/app/src/main/ (0, 2020-01-16)
android/app/src/main/AndroidManifest.xml (1979, 2020-01-16)
android/app/src/main/java/ (0, 2020-01-16)
android/app/src/main/java/com/ (0, 2020-01-16)
android/app/src/main/java/com/example/ (0, 2020-01-16)
android/app/src/main/java/com/example/blocs/ (0, 2020-01-16)
android/app/src/main/java/com/example/blocs/MainActivity.java (362, 2020-01-16)
android/app/src/main/res/ (0, 2020-01-16)
android/app/src/main/res/drawable/ (0, 2020-01-16)
android/app/src/main/res/drawable/launch_background.xml (434, 2020-01-16)
android/app/src/main/res/mipmap-hdpi/ (0, 2020-01-16)
android/app/src/main/res/mipmap-hdpi/ic_launcher.png (544, 2020-01-16)
android/app/src/main/res/mipmap-mdpi/ (0, 2020-01-16)
android/app/src/main/res/mipmap-mdpi/ic_launcher.png (442, 2020-01-16)
android/app/src/main/res/mipmap-xhdpi/ (0, 2020-01-16)
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (721, 2020-01-16)
android/app/src/main/res/mipmap-xxhdpi/ (0, 2020-01-16)
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (1031, 2020-01-16)
android/app/src/main/res/mipmap-xxxhdpi/ (0, 2020-01-16)
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (1443, 2020-01-16)
android/app/src/main/res/values/ (0, 2020-01-16)
android/app/src/main/res/values/styles.xml (361, 2020-01-16)
android/build.gradle (470, 2020-01-16)
android/gradle.properties (29, 2020-01-16)
android/gradle/ (0, 2020-01-16)
android/gradle/wrapper/ (0, 2020-01-16)
android/gradle/wrapper/gradle-wrapper.properties (231, 2020-01-16)
android/settings.gradle (484, 2020-01-16)
ios/ (0, 2020-01-16)
ios/Flutter/ (0, 2020-01-16)
ios/Flutter/AppFrameworkInfo.plist (773, 2020-01-16)
... ...

# Reactive Programming - BLoC - Practical Use Cases and Patterns Source code of the article available on [didierboelens.com](https://www.didierboelens.com/2018/12/reactive-programming---streams---bloc---practical-use-cases/) This article introduces some practical use cases of the BLoC pattern: * Event-State Sometimes, handling a series of activities which might be sequential or parallel, long or short, synchronous or asynchronous and which could also lead to various results, can become extremely hard to program. You might also require to update the display along with the progress or depending on the states. This first use case is aimed at making it easier to handle such situation. * Form Validation How to make it easier to automate a Form fields content validation and Widgets accessibility, based on Business Rules? This second use case shows how to achieve this, separating the business rules from the View. As a bonus, it also shows how to answer a question very frequently asked: "*how to check if a password and retyped password match?*". * Part Of This last use case explains how easy it is, thanks to the BLoC pattern, to make an isolated Widget behavior adapt based on its presence in a set. The source code, through a embryo of a Shopping Basket application, shows how a Widget knows it is part of the Shopping Basket or not, and how it can adapt its behavior accordingly.
## Updated (20 DEC 2018) * Code clean up * Additional version of the "DecisionPage" (see decision_page_no_business.dart) This version of the page does not contain any Business Logic but externalizes the Business Logic via the [DecisionStateTransform] which extends the [BlocStateTransformBase]

近期下载者

相关文件


收藏者