I want only two digits after decimal point in the flutter input.User can\'t add more than two digits after decimal point.
May be this is a simpler solution
inputFormatters: [ FilteringTextInputFormatter.allow(RegExp(r'(^\d*\.?\d{0,2})')) ]