簡體   English   中英

TextField 只接受 flutter 中的一定數量的數字

[英]TextField accept just certain count of numbers in flutter

我有一個電話號碼字段,我希望它只接受數字,用戶只能輸入 10 個數字

使用帶有keyboardType: TextInputType.phoneinputFormatters: [LengthLimitingTextInputFormatter(10)]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM