AppFlowy/app_flowy/lib/welcome/domain/i_splash.dart

24 lines
599 B
Dart
Raw Normal View History

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';
abstract class ISplashUser {
2021-09-04 08:53:58 +00:00
Future<AuthState> currentUserProfile();
2021-07-12 15:27:58 +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
}