vin_scanner 0.0.2 copy "vin_scanner: ^0.0.2" to clipboard
vin_scanner: ^0.0.2 copied to clipboard

' A customizable Flutter widget for live barcode scanning using Google ML Kit and the device camera. Supports front and back cameras with orientation lock, resolution presets, overlay styling, and con [...]

example/lib/vin_scanner.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:vin_scanner/vin_scanner.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: BarcodeScannerScreen(
        onBarcodeDetected: (code, type) {
          debugPrint('Detected barcode: $code');
          debugPrint('Detected barcode type: $type');
        },
        orientationLock: DeviceOrientation.portraitUp,
      ),
    );
  }
}
3
likes
0
points
44
downloads

Publisher

verified publisherflutterdevs.com

Weekly Downloads

' A customizable Flutter widget for live barcode scanning using Google ML Kit and the device camera. Supports front and back cameras with orientation lock, resolution presets, overlay styling, and configurable frame processing rate. Ideal for quick integration of barcode scanning features. This works for both Android & iOS.'

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

camera, flutter, google_mlkit_barcode_scanning, permission_handler

More

Packages that depend on vin_scanner