From a95b47176b615decf1dcdbec209af476561b89e2 Mon Sep 17 00:00:00 2001 From: Charles Dyason Date: Fri, 12 Jan 2024 01:14:15 +0200 Subject: [PATCH 1/2] fix: `keyPressed` not attached to `_onKeyPressed` event --- lib/flutter_dialpad.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/flutter_dialpad.dart b/lib/flutter_dialpad.dart index 0dcc4ec..247425f 100644 --- a/lib/flutter_dialpad.dart +++ b/lib/flutter_dialpad.dart @@ -274,6 +274,7 @@ class _DialPadState extends State { /// Handles keypad button press, this includes numbers and [DialActionKey] except [DialActionKey.backspace] void _onKeyPressed(String? value) { if (value != null) { + widget.keyPressed?.call(value); setState(() { _value += value; _controller.updateText(_value); From 799ae4912fe9d9a0373f53413bd705464125ed61 Mon Sep 17 00:00:00 2001 From: Charles Dyason Date: Fri, 12 Jan 2024 01:20:15 +0200 Subject: [PATCH 2/2] docs: update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 886d254..1cbcdd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.1.1] - 2023-01-12 + +* Fix missing `keyPressed` event for individual keys pressed on the keypad. + ## [1.1.0] - 2023-00-23 * Add custom keypad `keypad_generator`s with extensibility options.