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

discontinued
outdated

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

example/lib/main.dart

import 'dart:developer' as developer;

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: () {
        developer.log('Not Secure Env - Closing App..');
      },
    );
    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
60%
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