Remove drawer history entry when drawer is disposed. (#5157)
BUG=https://github.com/flutter/flutter/issues/5103
This commit is contained in:
@@ -122,6 +122,7 @@ class DrawerControllerState extends State<DrawerController> {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_historyEntry?.remove();
|
||||
_controller
|
||||
..removeListener(_animationChanged)
|
||||
..removeStatusListener(_animationStatusChanged)
|
||||
|
||||
Reference in New Issue
Block a user