flutter text field accept only numbers no special characters code example
Example: how to allow only characters and numbers in textfield flutter
inputFormatters: [new WhitelistingTextInputFormatter(RegExp("[a-zA-Z0-9]")),],
inputFormatters: [new WhitelistingTextInputFormatter(RegExp("[a-zA-Z0-9]")),],