risk_dfp_flutter 1.0.1 copy "risk_dfp_flutter: ^1.0.1" to clipboard
risk_dfp_flutter: ^1.0.1 copied to clipboard

outdated

Facilitates secure device info collection and analysis for seamless integration of Risk Detection and Fraud Prevention in Flutter apps, enhancing security.

example/lib/main.dart

// import 'package:flutter/material.dart';
// import 'package:hive_flutter/hive_flutter.dart';
//
// import 'main_app.dart';
//
// void main() async {
//   await _initHive();
//   runApp(const MainApp());
// }
//
// Future<void> _initHive() async {
//   await Hive.initFlutter();
//   await Hive.openBox("login");
//   await Hive.openBox("accounts");
// }

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

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

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

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              FutureBuilder<String>(
                  future: RiskDfpFlutter.getDeviceFingerPrint,
                  builder: (_, snapShoot) {
                    return TextButton(
                        onPressed: () async {
                          await RiskDfpFlutter.submitDeviceFingerPrint({
                            "userId": "",
                            "key": "",
                            "endpoint":
                            "https://rdx.zalopay.vn/v1/api/gimo/android/dfp",
                          });
                        },
                        child: const Text("Click to Send"));
                  } // <-- ElevatedButton
              )
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

Facilitates secure device info collection and analysis for seamless integration of Risk Detection and Fraud Prevention in Flutter apps, enhancing security.

Homepage

License

unknown (license)

Dependencies

basic_utils, encrypt, flutter, flutter_dotenv, http, plugin_platform_interface

More

Packages that depend on risk_dfp_flutter

Packages that implement risk_dfp_flutter