auth_component_service.dart 677 B

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