Remove WidgetsBinding observer on state dispose

parent 997c5660
......@@ -409,6 +409,7 @@ class UsernameLoginPageState extends State<UsernameLoginPage>
@override
void dispose() {
WidgetsBinding.instance.removeObserver(this);
_visiblityController.dispose();
super.dispose();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment