Skip to main content

scandit_flutter_datacapture_id 8.7.0 copy "scandit_flutter_datacapture_id: ^8.7.0" to clipboard
scandit_flutter_datacapture_id: ^8.7.0 copied to clipboard

This plugin implements the ID capture capabilities of the Scandit Data Capture SDK.

example/lib/main.dart

import 'dart:async';

import 'package:material_ui/material_ui.dart';
import 'package:flutter/services.dart';

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

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

  @override
  State 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 {
    String platformVersion;
    // Platform messages may fail, so we use a try/catch PlatformException.
    try {
      platformVersion = "10";
    } 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'),
        ),
      ),
    );
  }
}
1
likes
160
points
3.7k
downloads

Documentation

API reference

Publisher

verified publisherscandit.com

Weekly Downloads

This plugin implements the ID capture capabilities of the Scandit Data Capture SDK.

Homepage

License

Apache-2.0 (license)

Dependencies

flutter, meta, scandit_flutter_datacapture_core

More

Packages that depend on scandit_flutter_datacapture_id

Packages that implement scandit_flutter_datacapture_id