文件名称:exposure:颤动的传感器小部件,当其曝光时会通知您
文件大小:3.43MB
文件格式:ZIP
更新时间:2024-05-06 01:37:15
Dart
曝光小部件 这是一个小部件,可以自动监视子小部件是否已暴露。 在窗口视口中找到子窗口小部件时,它将开始检测。 当停留时间超过曝光时间条件(默认值为0.5s)并且曝光区域大于可见性分数条件(默认值为50%)时,它将触发曝光回调并将Key值记录在队列中(默认值为最多可存储100个密钥)。 当在队列中遇到相同的密钥时,它将不会检测到。 安装 将此添加到您程序包的pubspec.yaml文件中。 dependencies : exposure : ^1.0.3 用法 ExposureDetector ({ key : Key ( 'exposure' ), // Custom Key child : childWidget, //Child Widget exposure : callBack // Exposure Callback }); 例子 配置 Ex
【文件预览】:
exposure-master
----example()
--------exposureAnimateExample.dart(4KB)
--------exposureDialogExample.dart(4KB)
--------exposureScrollExample.dart(2KB)
----analysis_options.yaml(145B)
----assets()
--------animation_exposure_en.gif(539KB)
--------scroll_exposure_en.gif(892KB)
--------animation_exposure.gif(637KB)
--------dialog_exposure.gif(1.06MB)
--------scroll_exposure.gif(597KB)
----README_CN.md(1KB)
----LICENSE(1KB)
----.gitignore(135B)
----pubspec.yaml(369B)
----CHANGELOG.md(251B)
----lib()
--------exposure.dart(89B)
--------src()
----README.md(2KB)