flutter_app_security_detected 1.0.0 copy "flutter_app_security_detected: ^1.0.0" to clipboard
flutter_app_security_detected: ^1.0.0 copied to clipboard

flutter_app_security_detected lib allow your app to detected security device both(dev and jailbreak).

flutter_app_security_detected #

Pub Package

Highly feature flutter_app_security_detected widget for Flutter.

Image
Disabled Detected
Image
Enabled Detected

Features #

  • Eanble or disabled security detected.
  • Change style dialog.

Usage #

Make sure to check out examples

Installation #

Add the following line to pubspec.yaml:

dependencies:
  flutter_app_security_detected: ^1.0.0

Basic setup #

The complete example is available here.

Configuration #

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  FlutterAppSecurityDetectedConfig().setConfig(
    allowSecurityDetected: true,
    securityDetectedTitle: "Security Detected",
    securityDetectedMessage:
        "This application will not run while a jailbreak or in development mode.",
    securityDetectedTitleButton: "Close",
    callback: (jailbroken, developerMode) {
      print(jailbroken);
      print(developerMode);
    },
    textTitleStyle: const TextStyle(
      color: Colors.red,
      fontSize: 30,
    ),
    textBodyStyle: TextStyle(
      fontSize: 20,
      color: Colors.red.withAlpha(100),
    ),
    textButtonStyle: const TextStyle(
      color: Colors.red,
      fontWeight: FontWeight.bold,
      fontSize: 20,
    ),
  );
  runApp(const MyApp());
}

Extent your flutter stateFulWidget from our class: #

  • FlutterAppSecurityDetectedStatefulWidget and FlutterAppSecurityDetectedStatefulWidgetState
class FlutterAppSecurityDetectedExample
    extends FlutterAppSecurityDetectedStatefulWidget {
  @override
  FlutterAppSecurityDetectedExampleState createState() =>
      FlutterAppSecurityDetectedExampleState();
}

class FlutterAppSecurityDetectedExampleState
    extends FlutterAppSecurityDetectedStatefulWidgetState<
        FlutterAppSecurityDetectedExample> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Security Detected")),
      body: const Center(
        child: Text("Sample Security Detected"),
      ),
    );
  }
}

Events #

use callback will return status of your device detected.

    callback: (jailbroken, developerMode) {
      print(jailbroken);
      print(developerMode);
    }

Hello everyone πŸ‘‹

If you want to support me, feel free to do so.

Thanks

============================================

αžŸαž½αžŸαŸ’αžŠαžΈ αž’αŸ’αž“αž€αž‘αžΆαŸ†αž„αž’αžŸαŸ‹αž‚αŸ’αž“αžΆπŸ‘‹

αž”αžΎβ€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž‚αžΆαŸ†αž‘αŸ’αžšβ€‹αžαŸ’αž‰αž»αŸ† αžŸαžΌαž˜β€‹αž’αŸ’αžœαžΎβ€‹αžŠαŸ„αž™β€‹αžŸαŸαžšαžΈ ,

αžŸαžΌαž˜αž’αžšαž‚αž»αžŽ

0
likes
140
pub points
8%
popularity

Publisher

verified publisherdarith.info

flutter_app_security_detected lib allow your app to detected security device both(dev and jailbreak).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_jailbreak_detection, restart_app

More

Packages that depend on flutter_app_security_detected