Last updated:
0 purchases
openiothub plugin
openiothub_plugin #
云易连APP的UI部分插件,通过添加UI插件以支持更多的
物联网设备和私有云服务
开发云易连插件需要包含三步:
在设备模型目录或者
私有云服务目录创建对应的界面模型
将上述创建的页面引入到components.dart
将创建的页面在modelsMap.dart中的map里面注册(map的key是设备或者模型的名称,值是页面)
例如:
创建一个oneKeySwitch.dart页面
然后在components.dart引入
然后在modelsMap.dart中注册
插件规范:
目前插件规范是引入一个PortService模型,页面根据PortService中保存的信息进行操作
页面一个设一个名叫modelName的静态常亮,这是该模型的唯一ID
具体参考目前的插件页面例子
Getting Started #
This project is a starting point for a Dart
package, a library module containing code that can be
shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our
online documentation, which offers tutorials, samples, guidance on
mobile development, and a full API reference.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.