barcode_scanner_pro 0.3.0 copy "barcode_scanner_pro: ^0.3.0" to clipboard
barcode_scanner_pro: ^0.3.0 copied to clipboard

High-performance, offline barcode & QR scanner for Flutter using CameraX + ML Kit (Android) and AVFoundation + Vision (iOS) via native PlatformViews.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'demo_hub_page.dart';

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

/// Root of the example app. Owns the theme-mode toggle (light/dark) used to
/// demonstrate overlay theming.
class BarcodeScannerDemoApp extends StatefulWidget {
  const BarcodeScannerDemoApp({super.key});

  @override
  State<BarcodeScannerDemoApp> createState() => _BarcodeScannerDemoAppState();
}

class _BarcodeScannerDemoAppState extends State<BarcodeScannerDemoApp> {
  ThemeMode _themeMode = ThemeMode.dark;

  void _toggleTheme() => setState(() {
    _themeMode = _themeMode == ThemeMode.dark
        ? ThemeMode.light
        : ThemeMode.dark;
  });

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'barcode_scanner_pro demo',
      debugShowCheckedModeBanner: false,
      themeMode: _themeMode,
      theme: ThemeData(
        colorSchemeSeed: const Color(0xFF34C759),
        brightness: Brightness.light,
        useMaterial3: true,
      ),
      darkTheme: ThemeData(
        colorSchemeSeed: const Color(0xFF34C759),
        brightness: Brightness.dark,
        useMaterial3: true,
      ),
      home: DemoHubPage(
        isDark: _themeMode == ThemeMode.dark,
        onToggleTheme: _toggleTheme,
      ),
    );
  }
}
1
likes
120
points
38
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

High-performance, offline barcode & QR scanner for Flutter using CameraX + ML Kit (Android) and AVFoundation + Vision (iOS) via native PlatformViews.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

barcode, flutter, pdf, plugin_platform_interface, qr

More

Packages that depend on barcode_scanner_pro

Packages that implement barcode_scanner_pro