@@ -6,6 +6,9 @@ import 'package:tree_planting_protocol/pages/home_page.dart';
66import 'package:tree_planting_protocol/pages/mint_nft/mint_nft_details.dart' ;
77import 'package:tree_planting_protocol/pages/mint_nft/mint_nft_images.dart' ;
88import 'package:tree_planting_protocol/pages/mint_nft/submit_nft_page.dart' ;
9+ import 'package:tree_planting_protocol/pages/organisations_pages/create_organisation.dart' ;
10+ import 'package:tree_planting_protocol/pages/organisations_pages/organisation_details_page.dart' ;
11+ import 'package:tree_planting_protocol/pages/organisations_pages/user_organisations_page.dart' ;
912import 'package:tree_planting_protocol/pages/register_user_page.dart' ;
1013import 'package:tree_planting_protocol/pages/settings_page.dart' ;
1114import 'package:tree_planting_protocol/pages/tree_details_page.dart' ;
@@ -63,6 +66,30 @@ class MyApp extends StatelessWidget {
6366 return const SettingsPage ();
6467 },
6568 ),
69+ GoRoute (
70+ path: '/organisations' ,
71+ name: 'organisations_page' ,
72+ builder: (BuildContext context, GoRouterState state) {
73+ return const OrganisationsPage ();
74+ },
75+ routes: [
76+ GoRoute (
77+ path: ':address' ,
78+ name: 'organisation_details' ,
79+ builder: (BuildContext context, GoRouterState state) {
80+ final address = state.pathParameters['address' ];
81+ return OrganisationDetailsPage (organisationAddress: address! );
82+ },
83+ ),
84+ ],
85+ ),
86+ GoRoute (
87+ path: '/create-organisation' ,
88+ name: 'create_organisation_page' ,
89+ builder: (BuildContext context, GoRouterState state) {
90+ return const CreateOrganisationPage ();
91+ },
92+ ),
6693 GoRoute (
6794 path: RouteConstants .mintNftPath,
6895 name: RouteConstants .mintNft,
0 commit comments