Skip to content

Commit

Permalink
Ensure disposing ValueNotifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedLSayed9 committed Oct 28, 2023
1 parent ecc3b2c commit dff3e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/dropdown_button2/lib/src/dropdown_button2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ class DropdownButton2State<T> extends State<DropdownButton2<T>>
WidgetsBinding.instance.removeObserver(this);
_removeDropdownRoute();
_internalNode?.dispose();
_isMenuOpen.dispose();
_rect.dispose();
super.dispose();
}

Expand Down

0 comments on commit dff3e4a

Please sign in to comment.