flutter_reticle 0.2.0 flutter_reticle: ^0.2.0 copied to clipboard
Visual indicator for camera following material design, commonly used for object tetection
Reticle #
A Flutter plugin for iOS and Android that provide reticle for camera according to Material Design Object Detection: Live Camera
Installation #
Add to pubspec.yaml.
dependencies:
...
flutter_reticle: ^0.2.0
Usage #
import flutter_reticle.dart
import 'package:flutter_reticle/flutter_reticle.dart';
use the reticle widget specifying the state
Reticle(ReticleState.SENSING)
for the searching mode, you can specify the searching animation duration in milliseconds
Reticle(ReticleState.SEARCHING, duration: 2000)
The different states are #
enum ReticleState {
SENSING,
SEARCHING,
CLOSER,
ERROR
}
for a more concrete example head to the example folder