TextFormField(
keyboardType: TextInputType.numberWithOptions(decimal: true),
inputFormatters: [
FilteringTextInputFormatter.allow(RegExp(r'^d+.?d{0,2}')),
],
),
TextFormField(
inputFormatters: [
WhitelistingTextInputFormatter(RegExp(r'^d+.?d{0,2}')),
],
)