Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] MaskTextInputFormatter for hh:mm #71

Closed
ManuelFEMartinho opened this issue Aug 9, 2022 · 2 comments
Closed

[Feature Request] MaskTextInputFormatter for hh:mm #71

ManuelFEMartinho opened this issue Aug 9, 2022 · 2 comments

Comments

@ManuelFEMartinho
Copy link

Hi everyone,
is it possible to format for hh:mm where de max value is 23:59
I've tried THIS
final timeMaskFormatter = MaskTextInputFormatter( mask: 'hH:mM', filter: { 'h': RegExp(r'^[0-2]$'), 'H': RegExp(r'^[0-9]$'), 'm': RegExp(r'^[0-5]$'), 'M': RegExp(r'^0?[0-9]$') }, );

not sure how to manage this,

Thanks in advance

@siqwin
Copy link
Owner

siqwin commented Nov 28, 2023

#85

@siqwin siqwin closed this as completed Nov 28, 2023
@bawantha
Copy link

I think he ask about without validator ,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants