Answers for "flutter textfield to accept only numbers"

3

flutter textfield number only

import 'package:flutter/services.dart';

keyboardType: TextInputType.number,
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
Posted by: Guest on March-20-2021
0

how to allow only characters and numbers in textfield flutter

inputFormatters: [new  WhitelistingTextInputFormatter(RegExp("[a-zA-Z0-9]")),],
Posted by: Guest on June-04-2021

Code answers related to "flutter textfield to accept only numbers"

Browse Popular Code Answers by Language