You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi :) I used (and contributed to) this project some time ago. But after upgrading the Expandable my nested ExpandablePanels were acting weird, the inner expandable was able to close the outer ones. Single ExpandablePanels were not able to close anymore.
Looking through the source code and debugging I found that in this line the Expanded Controller was null. In case of nested, it returned the one of the parent.
final controller =this.controller ??ExpandableController.of(context);
I was able to resolve this behaviour by removing the ExpandableController from my ExpandablePanel and instead wrapping the widget in a ExpandableNotifier.
Please include a log telling the programmer that no ExpandableNotifier was found / that an own one needs to be provided. Or ideally provide the ExpandableNotifier to the outer Expandable and not the children.
Code to reproduce (basically flutter starter + example from here without the notifier)
The text was updated successfully, but these errors were encountered:
StefanLobbenmeier
changed the title
ExpandablePanel no longer collapsed (workaround found)
ExpandablePanel no longer collapsed (workaround found), nested ExpandablePanels close parents
Aug 18, 2020
StefanLobbenmeier
changed the title
ExpandablePanel no longer collapsed (workaround found), nested ExpandablePanels close parents
(workaround found) ExpandablePanel no longer collapsed, nested ExpandablePanels close parents
Aug 18, 2020
Hi :) I used (and contributed to) this project some time ago. But after upgrading the Expandable my nested ExpandablePanels were acting weird, the inner expandable was able to close the outer ones. Single ExpandablePanels were not able to close anymore.
Looking through the source code and debugging I found that in this line the Expanded Controller was null. In case of nested, it returned the one of the parent.
flutter-expandable/lib/expandable.dart
Line 453 in 5acd2ec
I was able to resolve this behaviour by removing the ExpandableController from my ExpandablePanel and instead wrapping the widget in a ExpandableNotifier.
Please include a log telling the programmer that no ExpandableNotifier was found / that an own one needs to be provided. Or ideally provide the ExpandableNotifier to the outer Expandable and not the children.
Code to reproduce (basically flutter starter + example from here without the notifier)
The text was updated successfully, but these errors were encountered: