flutter_mrz_scanner 0.7.0 copy "flutter_mrz_scanner: ^0.7.0" to clipboard
flutter_mrz_scanner: ^0.7.0 copied to clipboard

outdated

Scans MRZ (Machine Readable Zone) from identity documents for iOS and Android.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_mrz_scanner_example/camera_page.dart';
import 'package:permission_handler/permission_handler.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: FutureBuilder<Map<PermissionGroup, PermissionStatus>>(
        future:
            PermissionHandler().requestPermissions([PermissionGroup.camera]),
        builder: (context, snapshot) {
          if (snapshot.hasData &&
              snapshot.data[PermissionGroup.camera] ==
                  PermissionStatus.granted) {
            return CameraPage();
          }
          return Scaffold(
            body: Center(
              child: Column(
                children: const [
                  CircularProgressIndicator(),
                  Text('Awaiting for permissions')
                ],
              ),
            ),
          );
        },
      ),
    );
  }
}
35
likes
0
pub points
85%
popularity

Publisher

verified publisherleushchenko.com

Scans MRZ (Machine Readable Zone) from identity documents for iOS and Android.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, mrz_parser

More

Packages that depend on flutter_mrz_scanner