Reticle

A Flutter plugin for iOS and Android that provide reticle for camera according to Material Design Object Detection: Live Camera

Sensing Closer Searching Error

Installation

Add to pubspec.yaml.

dependencies:
  ...
  flutter_reticle: ^0.1.2

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

Libraries

flutter_reticle