LaoMengFlutter / flutter-do

包含350多个组件用法、组件继承关系图、40多个 loading 组件,App升级、验证码、弹幕、音乐字幕 4个插件,一个小而全完整的App项目。
http://laomengit.com/
Apache License 2.0
2.64k stars 542 forks source link

是否可以即显示边框的选中状态 ,方框中也显示光标?? #63

Closed topjx closed 3 years ago

topjx commented 3 years ago

显示光标,设置光标样式:

VerificationBox( showCursor: true, cursorWidth: 2, cursorColor: Colors.red, cursorIndent: 10, cursorEndIndent: 10, ) 效果如下:

还可以设置光标为整个边框,如下:

VerificationBox( focusBorderColor: Colors.lightBlue, )