import 'package:flutter/foundation.dart'; import 'package:get/get.dart'; import 'package:isekai_wiki/global.dart'; import 'package:isekai_wiki/models/user.dart'; class LifeCycleController extends SuperController { @override void onDetached() {} @override void onInactive() {} @override void onPaused() {} @override void onResumed() { if (Global.isAppActive) { try { var uc = Get.find(); uc.attemptFinishAuth(); } catch (err, stack) { if (kDebugMode) { print("error on attemptFinishAuth: $err"); stack.printError(); } } } } }