complycube 0.0.6 copy "complycube: ^0.0.6" to clipboard
complycube: ^0.0.6 copied to clipboard

The official Flutter SDK for integrating ComplyCube's Identity Verification UI into your mobile app.

example/lib/main.dart

import 'package:complycube_example/comply_cube_widget.dart';
import 'package:complycube_example/constants.dart';
import 'package:complycube_example/open_comply_cube.dart';
import 'package:flutter/material.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      navigatorKey: navigatorKey,
      home: ComplyCubeWidetBuilderPage(),
    );
  }
}

class ComplyCubeWidetBuilderPage extends StatelessWidget {
  const ComplyCubeWidetBuilderPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Plugin TestS'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Text('................Test...............'),
            const SizedBox(height: 16),
            TextButton(
              onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute<void>(
                    builder: (BuildContext context) => const OpenComplyCubeExample(), //ComplyCubeWidgetBuilder
                  ),
                );
              },
              child: const Text("open by method call"),
            ),
            const SizedBox(height: 16),
            TextButton(
              onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute<void>(
                    builder: (BuildContext context) => const ComplyCubeWidgetBuilder(), //ComplyCubeWidgetBuilder
                  ),
                );
              },
              child: const Text("open by widget builder"),
            )
          ],
        ),
      ),
    );
  }
}
2
likes
0
points
286
downloads

Publisher

verified publishercomplycube.com

Weekly Downloads

The official Flutter SDK for integrating ComplyCube's Identity Verification UI into your mobile app.

Homepage

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on complycube

Packages that implement complycube