2021-07-13 06:28:01 +00:00
|
|
|
import 'package:flowy_sdk/protobuf/flowy-user/protobuf.dart';
|
2021-07-12 15:27:58 +00:00
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
|
|
|
|
import 'auth_state.dart';
|
|
|
|
|
2021-09-08 05:50:20 +00:00
|
|
|
abstract class ISplashUser {
|
2021-09-04 08:53:58 +00:00
|
|
|
Future<AuthState> currentUserProfile();
|
2021-07-12 15:27:58 +00:00
|
|
|
}
|
|
|
|
|
2021-09-08 05:50:20 +00:00
|
|
|
abstract class ISplashUserWatch {
|
|
|
|
void startWatching({
|
|
|
|
void Function(AuthState)? authStateCallback,
|
|
|
|
});
|
|
|
|
|
|
|
|
Future<void> stopWatching();
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class ISplashRoute {
|
2021-09-06 08:18:34 +00:00
|
|
|
void pushSignInScreen(BuildContext context);
|
2021-11-08 06:11:10 +00:00
|
|
|
void pushSkipLoginScreen(BuildContext context);
|
|
|
|
|
2021-09-06 08:18:34 +00:00
|
|
|
Future<void> pushWelcomeScreen(BuildContext context, UserProfile profile);
|
2021-11-08 06:11:10 +00:00
|
|
|
void pushHomeScreen(BuildContext context, UserProfile profile, String workspaceId);
|
2021-07-12 15:27:58 +00:00
|
|
|
}
|