You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
554 B
Dart
28 lines
554 B
Dart
2 years ago
|
import 'package:flutter/widgets.dart';
|
||
|
import 'package:get/get.dart';
|
||
|
import 'package:isekai_wiki/models/user.dart';
|
||
|
|
||
|
class LifeCycleController extends SuperController {
|
||
|
@override
|
||
|
void onDetached() {}
|
||
|
|
||
|
@override
|
||
|
void onInactive() {}
|
||
|
|
||
|
@override
|
||
|
void onPaused() {
|
||
|
debugPrint("onPause");
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void onResumed() {
|
||
|
debugPrint("onResume");
|
||
|
try {
|
||
|
var uc = Get.find<UserController>();
|
||
|
uc.attemptFinishAuth().catchError((err) {
|
||
|
err.printError(info: 'attemptFinishAuth');
|
||
|
});
|
||
|
} catch (_) {}
|
||
|
}
|
||
|
}
|