Skip to content

Commit

Permalink
Version 12.2.2 (#382)
Browse files Browse the repository at this point in the history
When toolbar item is clicked, first pop the route and then call its callback - Fixes #346 (#381)

* fix: when a toolbar item is clicked, remove route first and then call its callback - fixes #346

* chore: update version and changelog

Co-authored-by: Minas Giannekas <[email protected]>
  • Loading branch information
GroovinChip and whiplashoo authored Mar 3, 2023
1 parent dd76d06 commit 278dc11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [1.12.2]
* Fixed a bug where clicking on a overflowed toolbar item with a navigation callback wouldn't work ([#346](https://github.com/GroovinChip/macos_ui/issues/346)).

## [1.12.1+1]
* Fixed a typo in the December abbreviation displayed in the `MacosDatePicker`.

Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.12.1+1"
version: "1.12.2"
matcher:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/layout/toolbar/toolbar_overflow_menu_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class _ToolbarOverflowMenuItemState extends State<ToolbarOverflowMenuItem> {
}

void _handleOnTap() {
widget.onPressed?.call();
Navigator.pop(context);
widget.onPressed?.call();
}

bool get _isHighlighted => _isHovered || widget.isSelected == true;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: macos_ui
description: Flutter widgets and themes implementing the current macOS design language.
version: 1.12.1+1
version: 1.12.2
homepage: "https://macosui.dev"
repository: "https://github.com/GroovinChip/macos_ui"

Expand Down

0 comments on commit 278dc11

Please sign in to comment.