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

discontinued
outdated

Check if the device is trustworthy, rooted, jailbroken, developer mode is on, ...etc.

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() {
    PalestineTrustedDevice.check(
      checkRealDevice: true,
      checkDevMode: false,
      checkOnExternalStorage: false,
      checkRooted: true,
      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
0
pub points
68%
popularity

Publisher

verified publishermsayed.net

Check if the device is trustworthy, rooted, jailbroken, developer mode is on, ...etc.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on palestine_trusted_device