2021-12-19 21:29:33 +08:00
|
|
|
import 'package:flowy_sdk/protobuf/flowy-user-data-model/protobuf.dart' show UserProfile;
|
|
|
|
import 'package:flowy_sdk/protobuf/flowy-core-data-model/protobuf.dart';
|
2021-07-12 23:27:58 +08:00
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
|
|
|
|
import 'auth_state.dart';
|
|
|
|
|
2021-09-08 13:50:20 +08:00
|
|
|
abstract class ISplashUser {
|
2021-09-04 16:53:58 +08:00
|
|
|
Future<AuthState> currentUserProfile();
|
2021-07-12 23:27:58 +08:00
|
|
|
}
|
|
|
|
|
2021-09-08 13:50:20 +08:00
|
|
|
abstract class ISplashUserWatch {
|
|
|
|
void startWatching({
|
|
|
|
void Function(AuthState)? authStateCallback,
|
|
|
|
});
|
|
|
|
|
|
|
|
Future<void> stopWatching();
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class ISplashRoute {
|
2021-09-06 16:18:34 +08:00
|
|
|
void pushSignInScreen(BuildContext context);
|
2021-11-08 14:11:10 +08:00
|
|
|
void pushSkipLoginScreen(BuildContext context);
|
|
|
|
|
2021-09-06 16:18:34 +08:00
|
|
|
Future<void> pushWelcomeScreen(BuildContext context, UserProfile profile);
|
2021-11-10 23:39:51 +08:00
|
|
|
void pushHomeScreen(BuildContext context, UserProfile profile, CurrentWorkspaceSetting workspaceSetting);
|
2021-07-12 23:27:58 +08:00
|
|
|
}
|