TextFieldPreference.keyboardType support
After using TextFieldPreference
, I am looking for a way to only allow number input.
This could be achieved by giving the TextFieldPreference
an additional constructor argument like TextField.TextInputType type = TextField.TextInputType.text
. This package could then abstract the saving of the preference based on type (e.g. PrefService.setInt
, PrefService.setDouble
, so that it's backwards compatible.
Here is a snippet (https://gitlab.com/snippets/1866411.js) that I am working with not, if this is already implemented and I missed it, please let me know!
Edited by Thomas