Skip to content

Conversation

@yashas-hm
Copy link
Contributor

Description (Proposed Changes)

isExpanded variable in ./lib/widgets/exercises/filter_modal.dart line 51 was always being set to false hence it wasn't showing the filter options. Correcting the boolean logic fixed the bug.

Link to the issue :

Closes: #743

Checklist

  • Set a 100 character limit in your editor/IDE to avoid white space diffs in the PR
  • Tests for the changes have been added (for bug fixes / features)
  • Added yourself to AUTHORS.md
  • Updated/added relevant documentation (doc comments with ///).
  • Added relevant reviewers.
expansionCallback: (panelIndex, isExpanded) {
setState(() {
filters.filterCategories[panelIndex].isExpanded = !isExpanded;
filters.filterCategories[panelIndex].isExpanded = isExpanded;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦🏻

this could have never worked, but I remember testing it, mhhh

@rolandgeider rolandgeider merged commit 821ffbf into wger-project:master Mar 26, 2025
1 check failed
@rolandgeider
Copy link
Member

Thanks for the PR, merged!

(the failing test is one of the goldens, that's ok)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants