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

add reset function #25

Closed
chitgoks opened this issue Jul 4, 2020 · 6 comments
Closed

add reset function #25

chitgoks opened this issue Jul 4, 2020 · 6 comments

Comments

@chitgoks
Copy link

chitgoks commented Jul 4, 2020

to clear programmatically. i am doing a change pin feature using this. currently, i dont see any function in passcode_screen.dart

so a property like
changePin: true

would be nice. so if the user incorrectly enters both pin, a restart button will appear . just a suggestion.

@xPutnikx
Copy link
Owner

I believe features like that should be added by the person who implements the screen.
Each app has a different logic and many people would like to define their own behaviour. I'm trying to make this widget as simple and as flexible as possible, but don't implement any internal storage, passcode reset etc.

@chitgoks
Copy link
Author

a clear function can help greatly. so i can call it programmatically.

there is no way to create a reset workflow if there is no reset function.

thoughts?

@xPutnikx xPutnikx reopened this Jul 29, 2020
@xPutnikx
Copy link
Owner

@chitgoks I can make a reset function which you could call.

@chitgoks
Copy link
Author

thanks that would be great! thank you @xPutnikx

@xPutnikx
Copy link
Owner

Hi @chitgoks
I made an example of how the reset function can be done. I'm using the same approach in my own app.
Please check if it fulfills your needs
#31

@chitgoks
Copy link
Author

hi. thanks will look into this.

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

2 participants