TF-362 Change the view of Home and Session to become loading with spinner in white background
This commit is contained in:
committed by
Dat H. Pham
parent
6dc9e7b74f
commit
6bb1cfb0ce
@@ -0,0 +1,29 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/repository/credential_repository_impl.dart';
|
||||
import 'package:tmail_ui_user/features/login/domain/repository/credential_repository.dart';
|
||||
import 'package:tmail_ui_user/features/login/domain/usecases/get_credential_interactor.dart';
|
||||
|
||||
class CredentialBindings extends Bindings {
|
||||
|
||||
void dependencies() {
|
||||
log('CredentialBindings::dependencies(): dmm credential goi vao day di');
|
||||
bindingsRepositoryImpl();
|
||||
bindingsRepository();
|
||||
bindingsInteractor();
|
||||
}
|
||||
|
||||
void bindingsInteractor() {
|
||||
Get.put(GetCredentialInteractor(Get.find<CredentialRepository>()));
|
||||
}
|
||||
|
||||
void bindingsRepository() {
|
||||
log('CredentialBindings::bindingsRepository(): dmm Put CredentialRepo ');
|
||||
Get.put<CredentialRepository>(Get.find<CredentialRepositoryImpl>());
|
||||
}
|
||||
|
||||
void bindingsRepositoryImpl() {
|
||||
Get.put(CredentialRepositoryImpl(Get.find<SharedPreferences>()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user