Skip to main content

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

This plugin builds the foundation of all data capture related functionality offered by the Scandit Data Capture SDK.

example/lib/main.dart

import 'package:material_ui/material_ui.dart';

import 'package:scandit_flutter_datacapture_core/scandit_flutter_datacapture_core.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await ScanditFlutterDataCaptureCore.initialize();
  var context = DataCaptureContext.forLicenseKey('');
  var frameSource = Camera.defaultCamera;
  if (frameSource != null) {
    await context.setFrameSource(frameSource);
  }
  var app = MyApp(context);
  runApp(app);
  await frameSource?.switchToDesiredState(FrameSourceState.on);
}

class MyApp extends StatefulWidget {
  final DataCaptureContext _context;

  const MyApp(this._context, {super.key});

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

class MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('Plugin example app'),
          ),
          body: Center(
            child: DataCaptureView.forContext(widget._context),
          )),
    );
  }
}
8
likes
160
points
9.19k
downloads

Documentation

API reference

Publisher

verified publisherscandit.com

Weekly Downloads

This plugin builds the foundation of all data capture related functionality offered by the Scandit Data Capture SDK.

Homepage

License

Apache-2.0 (license)

Dependencies

flutter, meta

More

Packages that depend on scandit_flutter_datacapture_core

Packages that implement scandit_flutter_datacapture_core