Skip to content

Add widgets for custom layout to widget_toolkit_pin #135

@GoranPrime

Description

@GoranPrime

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions