@override void didChangeAppLifecycleState(AppLifecycleState state) {
switch (state) {
case AppLifecycleState.resumed:
setState(() {
print("app resumed");
});
break;
case AppLifecycleState.inactive:
setState(() {
print("app in inactive");
});
break;
case AppLifecycleState.paused:
print("app in pause");
break;
case AppLifecycleState.detached:
print("app in detached");
break;
}
}
The method doesn't override an inherited method.
Try updating this class to match the superclass, or removing the override annotation.
как побороть? )