i_splash.dart 599 B

1234567891011121314151617181920212223
  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. Future<void> pushWelcomeScreen(BuildContext context, UserProfile profile);
  16. void pushHomeScreen(
  17. BuildContext context, UserProfile profile, String workspaceId);
  18. }