palestine_trusted_device 0.1.1 copy "palestine_trusted_device: ^0.1.1" to clipboard
palestine_trusted_device: ^0.1.1 copied to clipboard

discontinued
PlatformAndroidiOS

Check if the device is emulator, rooted, jailbroken, in developer mode and so on.

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

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

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    PalTrustedDevice.check(
      emulator: true,
      devMode: false,
      onExtStorage: false,
      rooted: false,
      onFail: () {
        // Not Secure Env Detected
      },
    );
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: const Center(
          child: Text('Running on'),
        ),
      ),
    );
  }
}
24
likes
150
points
27
downloads

Publisher

verified publishermsayed.net

Weekly Downloads

Check if the device is emulator, rooted, jailbroken, in developer mode and so on.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on palestine_trusted_device