feat: managing returns
This commit is contained in:
parent
ca1eeafd8f
commit
6947bcfb01
11 changed files with 521 additions and 22 deletions
|
|
@ -55,7 +55,8 @@ GoRouter router(AuthRepository authRepository) => GoRouter(
|
|||
pageBuilder: (context, state) {
|
||||
final viewModel = BalViewModel(
|
||||
balRepository: context.read(),
|
||||
id: int.tryParse(state.pathParameters["id"] ?? ""),
|
||||
id: int.parse(state.pathParameters["id"] ?? ""),
|
||||
ownerRepository: context.read(),
|
||||
);
|
||||
return NoTransitionPage(child: BalPage(viewModel: viewModel));
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue