Remove drawer history entry when drawer is disposed. (#5157)

BUG=https://github.com/flutter/flutter/issues/5103
This commit is contained in:
Matt Perry
2016-07-29 18:22:49 -04:00
committed by Hans Muller
parent 566cacbd83
commit f59d04bfab

View File

@@ -122,6 +122,7 @@ class DrawerControllerState extends State<DrawerController> {
@override
void dispose() {
_historyEntry?.remove();
_controller
..removeListener(_animationChanged)
..removeStatusListener(_animationStatusChanged)