Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter textformfield decimal

keyboardType: TextInputType.numberWithOptions(decimal: true),
inputFormatters: [FilteringTextInputFormatter.allow(RegExp('[0-9.,]+')),],
onChanged: (value) => doubleVar = double.parse(value),
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #flutter #textformfield #decimal
ADD COMMENT
Topic
Name
3+3 =