0 purchases
captcha view nic
captcha_view #
适用于Flutter的验证码插件,可以随机生成数字或者字母,扭曲,遮盖物等。
Captcha(
{Key key,
this.width = double.infinity,
this.height = 40,
this.backgroundColor = Colors.white,
this.style = const TextStyle(fontSize: 18),
this.text = '',
this.lineColors,
this.decoration = const BoxDecoration(
color: Colors.white,
)}) : super(key: key);
copied to clipboard
Usage:
Captcha(
text: Captcha.generateText(length: 10,withLetter: true,withNumber: true),
)
copied to clipboard
Captcha(
lineColors: null,
text: Captcha.generateText(length: 4,withLetter: true,withNumber: true),
width: 100,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(14)
),
)
copied to clipboard
Captcha(
lineColors: Captcha.rainbowColors,
text: Captcha.generateText(length: 8,withLetter: true,withNumber: true),
width: 300,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold
),
)
copied to clipboard
Screenshot_1611307510.png
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.