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);
|
|
|
|
Future<void> pushWelcomeScreen(BuildContext context, UserProfile profile);
|
|
|
|
void pushHomeScreen(
|
|
|
|
BuildContext context, UserProfile profile, String workspaceId);
|
2021-07-12 15:27:58 +00:00
|
|
|
}
|