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 widgets for custom layout to widget_toolkit_pin #135

Open
18 tasks
GoranPrime opened this issue Oct 30, 2024 · 0 comments
Open
18 tasks

Add widgets for custom layout to widget_toolkit_pin #135

GoranPrime opened this issue Oct 30, 2024 · 0 comments

Comments

@GoranPrime
Copy link
Contributor

As a developer, I would like to have more control over how to show the various components in widget_toolkit_pin, with widgets which I can put on a page wherever I want while achieving the intended functionality.

ACs:

  • Add & export PinCodeProvider wrapper for the widgets which will create & provide PinCodeBloc to it’s descendants
    • add PinCodeService pinCodeService parameter
    • add BiometricsLocalDataSource? biometricsLocalDataSource parameter in case of using biometrics
    • add String? localizedBiometricsReason parameter in case of using biometrics
    • add Function(dynamic)? onAuthenticated parameter
  • Export PinCodeKeyboard widget:
    • emit current input pin to PinCodeBloc
    • add PinCodeCustomKey? deleteKeyButton parameter
    • add bool? isDisabled as a parameter, or from PinCodeBloc as default while loading
  • Add & export PinCodeMaskedKeys widget:
    • add int? currentPinLength as a parameter, or from PinCodeBloc as default
    • add bool? isLoading as a parameter, or from PinCodeBloc as default
  • Add & export PinCodeError widget:
    • add ErrorModel? error as a parameter, or from PinCodeBloc as default
    • add String Function(Object error) translateError parameter
  • Provide our implementation with shake & slide animations on error as default
  • Update documentation to reflect changes
  • Update tests

Estimate: 28h

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

1 participant