scanning_effect
1.0.11, released a year ago by an unverified publisher
A CustomPainter widget that adds a scanning line effect around a camera view.
WASM-ready
What it does
It draws a moving scanning line with customizable colors and border around any child widget, typically a camera preview. The animation parameters such as delay, duration, height offset and padding are configurable.
AI-written summary of version 1.0.11, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple visual scanning overlay for a camera preview
- You want a lightweight, customizable effect without adding heavy dependencies
Skip it when
- You require actual barcode/QR detection logic
- You need a full‑featured camera controller or advanced image processing
Strengths
- Very small and easy to integrate
- Highly customizable colors and animation timing
- No platform‑specific setup required
Weaknesses
- Provides only visual effect, no scanning functionality
- Limited configuration compared to full camera packages
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
@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()),
);
}Alternatives
Packages that do the same job and could replace scanning_effect.
- mobile_scanner
Offers built‑in camera preview with scanning overlay and barcode detection in one package
95Compare - qr_code_scanner_plus
Provides a ready‑made scanning UI plus QR code detection
94Compare