FLUTTER ECOSYSTEM

chihuy105/scanning_effect

chihuy105/scanning_effect open-source repository details.

スキャン効果 のプロジェクト画像
Stars
3
Forks
12
最終プッシュ(UTC)
2025/08/04
プロジェクト状態
公開中
chihuy105 GitHub avatar
GITHUB User

chihuy105 ↗

言語DartRubySwiftMakefileKotlinObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 3 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_lints開発用^1.0.0

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Scanning Effect

License: MIT

Scanning Effect to wrap around the camera

Demo Image Alt Text

Demo Code

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:

  • scanningColor: The color of the scanning animation
  • borderLineColor: The color of the border line
  • scanningHeightOffset: The percent of scanning animation with the view height
  • delay: The delay between each animation
  • duration: The length of time this animation should last.
  • scanningLinePadding: The padding of the scanning animation