Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter Fllutter:为什么使用键盘';s文本类型不为';在iOS上的数字键盘上不能更改?_Flutter - Fatal编程技术网

Flutter Fllutter:为什么使用键盘';s文本类型不为';在iOS上的数字键盘上不能更改?

Flutter Fllutter:为什么使用键盘';s文本类型不为';在iOS上的数字键盘上不能更改?,flutter,Flutter,我用过: 代码: -键盘类型:TextInputType.number on android that works, but on iOS doesn't shown numeric keyboard -键盘类型:TextInputType.numberWithOptions(十进制:true,有符号:true), -输入格式化程序:[ FilteringPutFormatter.digitsOnly ] 但什么都不管用 [1]: https://i.stack.imgur.com/ekeHw

我用过: 代码: -键盘类型:TextInputType.number

on android that works, but on iOS doesn't shown numeric keyboard
-键盘类型:TextInputType.numberWithOptions(十进制:true,有符号:true),
-输入格式化程序:[
FilteringPutFormatter.digitsOnly
]
但什么都不管用
[1]: https://i.stack.imgur.com/ekeHw.png

请在使用此文本字段的位置添加其他文件代码!我仅在此文件中使用此文本字段。或者你需要完整的代码吗?试试这个
keyboardType:TextInputType.number
 - keyboardType: TextInputType.numberWithOptions(decimal: true, signed: true),

 -inputFormatters: <TextInputFormatter>[ 
FilteringTextInputFormatter.digitsOnly 
]
but nothing works

  [1]: https://i.stack.imgur.com/ekeHw.png