Flutter Pin 输入字段
Flutter Pin Input Field
我正在尝试在线创建 this pin input using flutter. I found a few examples like this one,但 运行 在缩放输入以填充容器宽度或执行验证时遇到问题 - 用户应该只被允许输入数字。
有没有比提供的示例更好的方法来解决这个问题?
与其尝试重新发明轮子,不如使用成熟的 PIN 插件,例如 pin_code_text_field and pin_view. Some of them even provide great functionalities like SMS Listening
if you intend to use them in the future in Verification. You also find a wide array of ready-made widgets that will make your development life much easier in the official Dart packages 网站。
又一个密码包,我用它在钱包应用程序中创建本地存储的密码https://pub.dev/packages/flutter_pin_code_widget
我正在尝试在线创建 this pin input using flutter. I found a few examples like this one,但 运行 在缩放输入以填充容器宽度或执行验证时遇到问题 - 用户应该只被允许输入数字。
有没有比提供的示例更好的方法来解决这个问题?
与其尝试重新发明轮子,不如使用成熟的 PIN 插件,例如 pin_code_text_field and pin_view. Some of them even provide great functionalities like SMS Listening
if you intend to use them in the future in Verification. You also find a wide array of ready-made widgets that will make your development life much easier in the official Dart packages 网站。
又一个密码包,我用它在钱包应用程序中创建本地存储的密码https://pub.dev/packages/flutter_pin_code_widget