CAKE-29 | fixed call of contact list page

This commit is contained in:
Oleksandr Sobol 2020-09-01 20:06:41 +03:00
parent c3dc2be8d4
commit a93d93dd48
2 changed files with 7 additions and 22 deletions

View file

@ -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)));