feat: scan book to add to sell
This commit is contained in:
parent
3a013c829f
commit
07c7c98edb
11 changed files with 238 additions and 31 deletions
|
|
@ -80,7 +80,12 @@ GoRouter router(AuthRepository authRepository) => GoRouter(
|
|||
GoRoute(
|
||||
path: Routes.sell,
|
||||
pageBuilder: (context, state) {
|
||||
final viewModel = SellViewModel(balRepository: context.read());
|
||||
final viewModel = SellViewModel(
|
||||
balRepository: context.read(),
|
||||
bookInstanceRepository: context.read(),
|
||||
bookRepository: context.read(),
|
||||
ownerRepository: context.read(),
|
||||
);
|
||||
return NoTransitionPage(child: SellPage(viewModel: viewModel));
|
||||
},
|
||||
),
|
||||
|
|
|
|||
Reference in a new issue