Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
DDavidPrime committed Oct 2, 2024
1 parent 3ff0936 commit 3e2046b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/widget_toolkit_pin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.2.1]
* Fixed a visual bug where held buttons would remain stuck in the pressed state
* Throw an error if biometrics aren't supported during biometrics authentication

## [0.2.0]
- Updated dependencies:
* `rxdart` to `0.28.0`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ class PinCodeComponent extends StatefulWidget {
/// to make it clickable.
final PinCodeCustomKey? bottomRightKeyboardButton;

/// The duration of the input label animation presenting the error or input dots
final Duration inputLabelAnimationDuration =
const Duration(milliseconds: 300);

@override
State<PinCodeComponent> createState() => _PinCodeComponentState();
}
Expand Down Expand Up @@ -240,7 +244,7 @@ class _PinCodeComponentState extends State<PinCodeComponent>
child: child,
),
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 300),
duration: widget.inputLabelAnimationDuration,
switchInCurve: Curves.easeOut,
switchOutCurve: Curves.easeOut,
transitionBuilder: (child, animation) {
Expand All @@ -255,10 +259,13 @@ class _PinCodeComponentState extends State<PinCodeComponent>
child: child,
),
);
} else {
return AnimatedSwitcher.defaultTransitionBuilder
.call(child, animation);
}
if (animation.value <= 0) {
print("Error: $hasErrorText Anim: ${animation.value}");
}

return AnimatedSwitcher.defaultTransitionBuilder
.call(child, animation);
},
child: hasErrorText && widget.error != null
? _buildErrorText(context, widget.error!)
Expand Down
2 changes: 1 addition & 1 deletion packages/widget_toolkit_pin/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: widget_toolkit_pin
description: This package provide out of the box entering PIN code
functionality, which can be used with biometric authentication.
version: 0.2.0
version: 0.2.1
homepage: https://primeholding.com/

environment:
Expand Down

0 comments on commit 3e2046b

Please sign in to comment.