v1.0.11scanning_effect
使用 CustomPainter 實現可自訂邊框的環繞相機檢視掃描效果。
42喜歡 340近 30 天下載140Pub 分數
AndroidiOSWebmacOSWindowsLinux
chihuy105/scanning_effect open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
Scanning Effect to wrap around the camera
Demo Image Alt Text
Wrap the ScanningEffect widget around your widget
@override
Widget build(BuildContext context) {
return ScanningEffect(
scanningColor: Colors.red,
borderLineColor: Colors.green,
delay: Duration(seconds: 1),
duration: Duration(seconds: 2),
child: Container(
child: SizedBox(),
),
);
}
You can set the custom config base on these param: