AppFlowy/app_flowy/lib/welcome/domain/i_splash.dart
2021-09-08 13:50:20 +08:00

24 lines
599 B
Dart

import 'package:flowy_sdk/protobuf/flowy-user/protobuf.dart';
import 'package:flutter/widgets.dart';
import 'auth_state.dart';
abstract class ISplashUser {
Future<AuthState> currentUserProfile();
}
abstract class ISplashUserWatch {
void startWatching({
void Function(AuthState)? authStateCallback,
});
Future<void> stopWatching();
}
abstract class ISplashRoute {
void pushSignInScreen(BuildContext context);
Future<void> pushWelcomeScreen(BuildContext context, UserProfile profile);
void pushHomeScreen(
BuildContext context, UserProfile profile, String workspaceId);
}