A new Flutter package project.
更多效果可以根据实际情况传入不同参数进行自定义
使用Watermark包裹添加水印的区域
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body:Watermark(
text: '追忆单飞',
overlapping: true,
child: Container(
width: double.infinity,
height: double.infinity,
),
),
);
}