flutter_custom_text_input_formatter

TextField(
      decoration: InputDecoration(
          hintText: 'please input...', border: InputBorder.none),
      inputFormatters: CustomTextInputFormatter.getDoubleFormatter(),
      //inputFormatters: CustomTextInputFormatter.getDoubleFormatter(maxValue:50),
      //inputFormatters: CustomTextInputFormatter.getIntFormatter(),
      //inputFormatters: CustomTextInputFormatter.getIntFormatter(maxValue:50),
    );

Libraries

formatter