Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: PaneItem Behavior in Compact Mode #1082

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

WXL-steven
Copy link
Contributor

@WXL-steven WXL-steven commented Jul 8, 2024

Fix: Disabled PaneItem Still Accessible in Compact Mode of NavigationPane

Description:
This Pull Request addresses the issue where PaneItem widgets with enabled: false are still accessible when the NavigationPane is in PaneDisplayMode.compact mode.

Changes Made:

  • Modified pane_items.dart to ensure that onPressed and forceEnabled values are correctly passed based on the item.enabled property.
  • Updated the builder to merge the theme of the icon and title based on the states.

Issue Reference:
This PR resolves the bug where disabled PaneItem widgets can be navigated to when the NavigationPane is in compact mode, as described in the related issue: #1081

Pre-launch Checklist

  • I have updated CHANGELOG.md with my changes
  • I have run "dart format ." on the project
  • I have added/updated relevant documentation

…ionPane`

**Description:**
This Pull Request addresses the issue where `PaneItem` widgets with `enabled: false` are still accessible when the `NavigationPane` is in `PaneDisplayMode.compact` mode.

**Changes Made:**
- Modified `pane_items.dart` to ensure that `onPressed` and `forceEnabled` values are correctly passed based on the `item.enabled` property.
- Updated the `builder` to merge the theme of the icon and title based on the `states`.

**Issue Reference:**
This PR resolves the bug where disabled `PaneItem` widgets can be navigated to when the `NavigationPane` is in compact mode, as described in the related issue: bdlukaa#1081
@WXL-steven
Copy link
Contributor Author

Screenshots

image

@bdlukaa bdlukaa merged commit dfc2044 into bdlukaa:master Jul 8, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants