mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
CAKE-29 | fixed call of contact list page
This commit is contained in:
parent
c3dc2be8d4
commit
a93d93dd48
2 changed files with 7 additions and 22 deletions
|
@ -290,8 +290,11 @@ Future setup(
|
|||
getIt.registerFactory(() => ContactListViewModel(
|
||||
getIt.get<AppStore>().contactListStore, getIt.get<ContactService>()));
|
||||
|
||||
getIt.registerFactory(
|
||||
() => ContactListPage(getIt.get<ContactListViewModel>()));
|
||||
/*getIt.registerFactory(
|
||||
() => ContactListPage(getIt.get<ContactListViewModel>()));*/
|
||||
|
||||
getIt.registerFactoryParam<ContactListPage, bool, void>((bool isEditable, _) =>
|
||||
ContactListPage(getIt.get<ContactListViewModel>(), isEditable: isEditable));
|
||||
|
||||
getIt.registerFactoryParam<ContactPage, Contact, void>((Contact contact, _) =>
|
||||
ContactPage(getIt.get<ContactViewModel>(param1: contact)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue