auth_component_service.dart 774 B

12345678910111213141516171819202122232425262728293031323334
  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. @override
  24. void startSelectEstatePage() {
  25. SelectEstatePage.startInstance();
  26. }
  27. }