mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-09-22 05:24:44 -04:00
clean up context locators
This commit is contained in:
parent
751022e743
commit
2ccad50f9a
31 changed files with 603 additions and 542 deletions
|
@ -1,5 +1,6 @@
|
|||
import 'package:async_tools/async_tools.dart';
|
||||
import 'package:bloc_advanced_tools/bloc_advanced_tools.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:veilid_support/veilid_support.dart';
|
||||
|
||||
import '../../account_manager/account_manager.dart';
|
||||
|
@ -12,8 +13,12 @@ typedef AccountRecordsBlocMapState
|
|||
class AccountRecordsBlocMapCubit extends BlocMapCubit<TypedKey,
|
||||
AsyncValue<AccountRecordState>, AccountRecordCubit>
|
||||
with StateMapFollower<UserLoginsState, TypedKey, UserLogin> {
|
||||
AccountRecordsBlocMapCubit(AccountRepository accountRepository)
|
||||
: _accountRepository = accountRepository;
|
||||
AccountRecordsBlocMapCubit(
|
||||
AccountRepository accountRepository, Locator locator)
|
||||
: _accountRepository = accountRepository {
|
||||
// Follow the user logins cubit
|
||||
follow(locator<UserLoginsCubit>());
|
||||
}
|
||||
|
||||
// Add account record cubit
|
||||
Future<void> _addAccountRecordCubit(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue