quickcapture 0.0.4 copy "quickcapture: ^0.0.4" to clipboard
quickcapture: ^0.0.4 copied to clipboard

QuickCapture Mobile Scanning SDK Specially designed for flutter from Extrieve.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

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

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

typedef MyCallback = void Function(String result);

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _quickcapturePlugin = Quickcapture();

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

  Future<String?> startCapture() async {
    String? response = await _quickcapturePlugin.startCapture();
    return response;
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('QuickCapture sample'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () => {startCapture()},
            child: const Text("Start capture"),
          ),
        ),
      ),
    );
  }
}
12
likes
0
pub points
59%
popularity

Publisher

verified publisherextrieve.com

QuickCapture Mobile Scanning SDK Specially designed for flutter from Extrieve.

Homepage

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on quickcapture