Skip to content

Commit

Permalink
fix: hide Tab's close button when onClose is null
Browse files Browse the repository at this point in the history
  • Loading branch information
diluculo committed Dec 18, 2024
1 parent ad8cad8 commit 43d44fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/controls/navigation/tab_view/tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ class TabState extends State<Tab>
),
),
),
if (widget.closeIcon != null &&
if (widget.onClosed != null &&
widget.closeIcon != null &&
(tab.visibilityMode ==
CloseButtonVisibilityMode.always ||
(tab.visibilityMode ==
Expand Down

0 comments on commit 43d44fd

Please sign in to comment.