diff --git a/lib/ui/proposals/details/proposal_details_page.dart b/lib/ui/proposals/details/proposal_details_page.dart index c123a6eb..518d55df 100644 --- a/lib/ui/proposals/details/proposal_details_page.dart +++ b/lib/ui/proposals/details/proposal_details_page.dart @@ -1,7 +1,9 @@ import 'package:flutter/material.dart'; +import 'package:hypha_wallet/core/network/models/proposal_model.dart'; class ProposalDetailsPage extends StatelessWidget { - const ProposalDetailsPage({super.key}); + final ProposalModel proposal; + const ProposalDetailsPage(this.proposal, {super.key}); @override Widget build(BuildContext context) { diff --git a/lib/ui/proposals/list/proposals_page.dart b/lib/ui/proposals/list/proposals_page.dart index 2755167f..14cf4075 100644 --- a/lib/ui/proposals/list/proposals_page.dart +++ b/lib/ui/proposals/list/proposals_page.dart @@ -19,7 +19,7 @@ class ProposalsPage extends StatelessWidget { state.command?.when( navigateToProposalDetails: (ProposalModel proposal) { Get.Get.to( - () => const ProposalDetailsPage(), + () => ProposalDetailsPage(proposal), transition: Get.Transition.rightToLeft, ); },