risk_dfp_flutter 0.0.5-beta copy "risk_dfp_flutter: ^0.0.5-beta" to clipboard
risk_dfp_flutter: ^0.0.5-beta copied to clipboard

outdated

Risk DFP Flutter Package enables the collection and analysis of device information, facilitating secure and efficient integration of Risk Detection and Fraud Prevention features into Flutter apps for [...]

example/lib/main.dart

import 'dart:convert';

import 'package:flutter/foundation.dart';
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: () {
                    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

Risk DFP Flutter Package enables the collection and analysis of device information, facilitating secure and efficient integration of Risk Detection and Fraud Prevention features into Flutter apps for enhanced security and fraud protection.

Homepage

License

unknown (license)

Dependencies

flutter, http, plugin_platform_interface

More

Packages that depend on risk_dfp_flutter

Packages that implement risk_dfp_flutter