i_splash.dart 643 B

123456789101112131415161718192021222324
  1. import 'package:flowy_sdk/protobuf/flowy-user/protobuf.dart';
  2. import 'package:flutter/widgets.dart';
  3. import 'auth_state.dart';
  4. abstract class ISplashUser {
  5. Future<AuthState> currentUserProfile();
  6. }
  7. abstract class ISplashUserWatch {
  8. void startWatching({
  9. void Function(AuthState)? authStateCallback,
  10. });
  11. Future<void> stopWatching();
  12. }
  13. abstract class ISplashRoute {
  14. void pushSignInScreen(BuildContext context);
  15. void pushSkipLoginScreen(BuildContext context);
  16. Future<void> pushWelcomeScreen(BuildContext context, UserProfile profile);
  17. void pushHomeScreen(BuildContext context, UserProfile profile, String workspaceId);
  18. }