flutter_watermark 1.0.2 copy "flutter_watermark: ^1.0.2" to clipboard
flutter_watermark: ^1.0.2 copied to clipboard

A new Flutter package helps you add watermarks globally.

A new Flutter package helps you add watermarks globally.

Screenshot #

flutter_watermark

Usage #

    // 初始化插件
    final DisableScreenshots _plugin = DisableScreenshots();
    _f(){
      // 添加默认样式的水印
      _plugin.addWatermark(context, "默认水印", rowCount: 4, columnCount: 8);
      // 添加自定义widget当做水印
      _plugin.addCustomWatermark(context, const Watermark(rowCount: 3, columnCount: 10, text: "自定义水印"));
      // 移除水印
      _plugin.removeWatermark();
    }

Additional information #

The idea is borrowed from disable_screenshots.

11
likes
130
pub points
81%
popularity

Publisher

verified publisherneday.cn

A new Flutter package helps you add watermarks globally.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_watermark