th_service_impl.dart 480 B

123456789101112131415161718192021222324
  1. import 'package:plugin_basic/basic_export.dart';
  2. import 'package:router/componentRouter/th_service.dart';
  3. import '../modules/main/main_page.dart';
  4. /// TH组件对应的路由实现类
  5. class THServiceImpl extends GetxService implements THService {
  6. @override
  7. void onInit() {
  8. super.onInit();
  9. //初始化资源
  10. }
  11. @override
  12. void onClose() {
  13. super.onClose();
  14. //销毁资源
  15. }
  16. @override
  17. void startTHMainPage() {
  18. THMainPage.startWithPopAll();
  19. }
  20. }