简体   繁体   中英

How do allow spaces in textinput.number in Flutter?

In TextInput.number, although I add space in the RegExp in FilteringTextInputFormatter, my iPhone or the simulator for the matter does not show the space in the keyboard for me to press. It only shows numbers. Is there a workaround or is there another input type I should be using?

On Android, TextInputType.number provides you with the space button (looks a bit like an underscore).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM