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

The Sign3 SDK is an Android-based fraud prevention toolkit designed to assess device security, detecting potential risks such as rooted devices, VPN connections, or remote access and much more. Provid [...]

example/lib/main.dart

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

void main() {
  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(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: [
            FutureBuilder<String>(
              future: Sign3IntelligencePlugin.getSessionId(), // Call the async method
              builder: (BuildContext context, AsyncSnapshot<String> snapshot) {
                if (snapshot.connectionState == ConnectionState.waiting) {
                  return const CircularProgressIndicator(); // Show a loader while waiting for the result
                } else if (snapshot.hasError) {
                  return Text('Session Id Error: ${snapshot.error}');
                } else if (snapshot.hasData) {
                  return Text('Session Id: ${snapshot.data}\n');
                } else {
                  return const Text('Unknown session id');
                }
              },
            ),

            FutureBuilder<Map<String, dynamic>>(
              future: Sign3IntelligencePlugin.getIntelligence(), // Call the async method
              builder: (BuildContext context, AsyncSnapshot<Map<String, dynamic>> snapshot) {
                if (snapshot.connectionState == ConnectionState.waiting) {
                  return const CircularProgressIndicator(); // Show a loader while waiting for the result
                } else if (snapshot.hasError) {
                  return Text('Intelligence Error: ${snapshot.error}');
                } else if (snapshot.hasData) {
                  final sessionId = snapshot.data?['sessionId'] ?? 'Unknown'; // Extract session id
                  return Text('Intelligence: $sessionId\n');
                } else {
                  return const Text('Unknown');
                }
              },
            )

          ],
        ),
      ),
    );
  }
}
1
likes
0
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

The Sign3 SDK is an Android-based fraud prevention toolkit designed to assess device security, detecting potential risks such as rooted devices, VPN connections, or remote access and much more. Providing insights into the device's safety, it enhances security measures against fraudulent activities and ensures a robust protection system.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on fraud_sdk_flutter

Packages that implement fraud_sdk_flutter