some clean up before exiting

pull/2/head
fuwa 5 years ago
parent b64a2d27fe
commit a98912a03c

@ -146,6 +146,7 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver
Future<bool> _exitApp(BuildContext context) async {
print("MyHomePageState _exitApp");
WidgetsBinding.instance.removeObserver(this);
exit(0);
}