ultron_screenshot_shield 2.0.0 copy "ultron_screenshot_shield: ^2.0.0" to clipboard
ultron_screenshot_shield: ^2.0.0 copied to clipboard

A Flutter plugin to enable and disable screenshot for Android and iOS

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:ultron_screenshot_shield/ultron_screenshot_shield.dart';

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

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

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

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Plugin example app')),
        body: Center(
          child: Column(
            children: [
              ElevatedButton(
                onPressed: () async {
                  await UltronScreenshotShield.disableScreenshot();
                },
                child: const Text('Disable Screenshot'),
              ),
              const SizedBox(height: 20),
              ElevatedButton(
                onPressed: () async {
                  await UltronScreenshotShield.enableScreenshot();
                },
                child: const Text('Enable Screenshot'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
244
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to enable and disable screenshot for Android and iOS

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on ultron_screenshot_shield

Packages that implement ultron_screenshot_shield