📜  flutter textformfield decimal - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:05.838000             🧑  作者: Mango

代码示例1
keyboardType: TextInputType.numberWithOptions(decimal: true),
inputFormatters: [FilteringTextInputFormatter.allow(RegExp('[0-9.,]+')),],
onChanged: (value) => doubleVar = double.parse(value),