ca_presentation 2.4.3

  • Readme
  • Changelog
  • Installing
  • 48

CA Presentation #

Presentation layer state management solution for Clean Architecture (based on dependency injection package: get_it)

Getting Started #

[2.4.3] - 2020/3/18 #

  • feat: 添加了 example

[2.4.2] - 2020/3/13 15:34 #

  • fix(ViewModel): 为AbsViewModel添加初始化_vmState的构造,修复了继承自ViewModel的类无法执行事件的BUG

[2.4.1] - 2020/3/13 9:25 #

  • feat(ViewModel): 为ViewModel添加isBlocking方法,为 checkAndSetBlocking添加 @protected注解
  • doc(ViewModel): 添加注释

[2.4.0] - 2020/3/11/ 17:06 #

  • 重构代码, 并去除所有类名中的"Sl",使用Abs取代Base (Sl意为: Service Locator)

[2.3.1] - 2020/3/11 13:42 #

  • 修复抽象_AbsSlView错误的实现了createState()的问题

[2.3.0] - 2020/3/11 13:01 #

  • 将BaseViewModel改为 ViewModel, 将其内容抽象到_AbsViewModel

[2.2.1] - 2020/3/11 12:47 #

  • 当onError builder函数为null, sl_view提供默认的error展示方式

[2.2.0] - 2020/3/10 15:40 #

  • 直接通过 get_it来获取 sl,而不是导入其他包

[2.1.0] - 2020/3/5 23:29 #

  • 将 setVMIdle 与notifyListeners()合并

[2.0.0] - 2020/3/5 23:19 #

  • 引入VM状态锁定机制, 状态不再依靠外部定义,而是有VM中的变量控制

[1.0.1] - 2020/3/4 10:13 #

  • 修复init()内多余的判断ready的方法,重命名notReady()为 isNotReady

[1.0.0] - 2020/3/3 22:20 #

  • 修复了之前因为省略泛型导致Type总是出错的BUG

[0.1.0] - 2020/3/3 11:03 #

  • 包装了get_it,取代provider

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  ca_presentation: ^2.4.3

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:ca_presentation/ca_presentation.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

We analyzed this package on Jul 3, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

because of import path [ca_presentation] that is in a package requiring null.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and ca_presentation.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
get_it ^4.0.0 4.0.2
Transitive dependencies
async 2.4.1
collection 1.14.12 1.14.13
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies
flutter_test