Skip to main content

scandit_flutter_datacapture_barcode 8.7.0-beta.1 copy "scandit_flutter_datacapture_barcode: ^8.7.0-beta.1" to clipboard
scandit_flutter_datacapture_barcode: ^8.7.0-beta.1 copied to clipboard

This plugin implements the barcode capture capabilities of the Scandit Data Capture SDK. It supports reading a large number of different barcode symbologies.

example/lib/main.dart

import 'package:material_ui/material_ui.dart';
import 'dart:async';

import 'package:flutter/services.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  MyAppState createState() => MyAppState();
}

class MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    var platformVersion = '';
    // Platform messages may fail, so we use a try/catch PlatformException.
    try {
      // platformVersion = await ScanditFlutterDatacaptureBarcode.platformVersion;
    } on PlatformException {
      platformVersion = 'Failed to get platform version.';
    }

    // If the widget was removed from the tree while the asynchronous platform
    // message was in flight, we want to discard the reply rather than calling
    // setState to update our non-existent appearance.
    if (!mounted) return;

    setState(() {
      _platformVersion = platformVersion;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
15
likes
0
points
8.86k
downloads

Publisher

verified publisherscandit.com

Weekly Downloads

This plugin implements the barcode capture capabilities of the Scandit Data Capture SDK. It supports reading a large number of different barcode symbologies.

Homepage

License

unknown (license)

Dependencies

flutter, meta, scandit_flutter_datacapture_core

More

Packages that depend on scandit_flutter_datacapture_barcode

Packages that implement scandit_flutter_datacapture_barcode