auth_component_service.dart 686 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Auth 组件的组件路由
  3. */
  4. import 'package:router/componentRouter/auth_service.dart';
  5. import 'package:hooks_riverpod/hooks_riverpod.dart';
  6. import 'package:riverpod_annotation/riverpod_annotation.dart';
  7. import '../../modules/auth_login/auth_login_page.dart';
  8. import '../../modules/select_estate/select_estate_page.dart';
  9. part 'auth_component_service.g.dart';
  10. @Riverpod(keepAlive: true)
  11. AuthService authService(Ref ref) {
  12. return AuthComponentService();
  13. }
  14. class AuthComponentService extends AuthService {
  15. @override
  16. void startLoginPage() {
  17. AuthLoginPage.startInstance();
  18. }
  19. @override
  20. void startResetPasswordPage() {
  21. SelectEstatePage.startInstance();
  22. }
  23. }