像贝宝(Paypal)
我想实现一个最初显示“ - , - ”的文本场。 如果我按1,那应该是“ - , - 1”等。因此,这基本上是一个INT,但文本是格式的。如果您想寄钱,PayPal也使用了这种输入。您也可以在那里导航。我没有找到任何包裹或问题。
也许你们中的一个人知道如何解决这个问题。
此致, 科林
I want to implement a Textfield, where initially is displayed "--,--".
If i press 1, then it should be "--,-1" and so on. So it is basically an int but the text is formatted. This kind of input is also used by paypal if you want to send your friends money. You also can navigate there. I didnt found any package or question.
Maybe someone of you guys know how to solve this issue.
Best Regards,
Colin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将默认字符串设置为
-.-
,并将其设置为使用TextEditedController的默认值。You can set a default string to
--.--
and set it as the default value with TextEditingController.