device_safety_info 1.5.1 copy "device_safety_info: ^1.5.1" to clipboard
device_safety_info: ^1.5.1 copied to clipboard

Device security toolkit for Flutter - root/jailbreak, hook, and debugger detection, screenshot and clipboard protection, overlay-attack defenses, VPN and update checks.

example/lib/main.dart

import 'package:material_ui/material_ui.dart';
import 'package:device_safety_info/device_safety_info.dart';

import 'src/pages/home_page.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({super.key});

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

class _MyAppState extends State<MyApp> {
  /// Shared with whichever page hosts [StreamsSection] (only mounted while that page
  /// is open). [IdleTimeoutGuard] below wraps every page via [MaterialApp.builder], so
  /// this counter stays correct no matter which page is on screen when it fires.
  final ValueNotifier<int> _idleTimeoutCount = ValueNotifier<int>(0);

  @override
  void dispose() {
    _idleTimeoutCount.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Device Safety Info',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo),
      ),
      builder: (context, child) => IdleTimeoutGuard(
        timeout: const Duration(seconds: 30),
        onTimeout: () => _idleTimeoutCount.value++,
        child: child!,
      ),
      home: HomePage(idleTimeoutCount: _idleTimeoutCount),
    );
  }
}
35
likes
0
points
2.37k
downloads

Publisher

verified publishertherivanta.com

Weekly Downloads

Device security toolkit for Flutter - root/jailbreak, hook, and debugger detection, screenshot and clipboard protection, overlay-attack defenses, VPN and update checks.

Repository (GitHub)
View/report issues

Topics

#security #root-detection #jailbreak-detection #privacy #device-integrity

License

unknown (license)

Dependencies

ffi, flutter

More

Packages that depend on device_safety_info

Packages that implement device_safety_info