oi-narendra / multiselect-dropdown

Streamlined Flutter widget for versatile multi-selection with extensive customization.
https://pub.dev/packages/multi_dropdown
GNU General Public License v3.0
73 stars 84 forks source link

zOrderIndex!=null error fix #128

Open Blankeye-zero opened 3 months ago

Blankeye-zero commented 3 months ago
Blankeye-zero commented 3 months ago

126 #127

Blankeye-zero commented 3 months ago

118

liuhll commented 3 months ago

I have the same problem. When will the bug be fixed and a new version be released?

Blankeye-zero commented 3 months ago

@liuhll waiting for the reviewer. In the mean time, you could change the source code yourself on your version of the package. Remember, hot restart dosen't reflect changes made to installed packages. You would need to rerun the app after stopping it.

oi-narendra commented 3 months ago

@Blankeye-zero Thank you for your contribution. Your change indeed resolves the issue.

However, it also affects the current functionality for closing the dropdown via the controller. The listener is crucial for closing the dropdown, so it's essential to include the _portalController.hide(); call within the listener's callback to maintain that functionality.

oi-narendra commented 3 months ago

The solution is to remove the controller listener on widget disposal. #132