Seller Services Routes
core/routing/app_router.dart · /services + /prestation/:id + /add-prestation
Overview
Three routes: /services (list, inside ShellRoute), /prestation/:id and /prestation/:id/edit (inside ShellRoute), /add-prestation (OUTSIDE ShellRoute for full-screen wizard).
User Flow
- /services lists provisions for the authenticated seller.
- Row tap pushes /prestation/:id with the id as path param.
- Edit pushes /prestation/:id/edit; FAB pushes /add-prestation.
- Auth redirect gates /add-prestation behind hasSellerRole.
Cases & Edge Cases
- /add-prestation is the only seller route declared OUTSIDE the ShellRoute (full-screen wizard).
- Edit route uses a regex match (/prestation/:id/edit) so the redirect can detect it without route-name awareness.
Code References
- lib/src/core/routing/app_router.dart:454 // /services
- lib/src/core/routing/app_router.dart:507 // /prestation/:id/edit
- lib/src/core/routing/app_router.dart:513 // /prestation/:id
- lib/src/core/routing/app_router.dart:731 // /add-prestation (outside ShellRoute)
API Calls
Empty — fill this in later. Open the manifest and add content here.
Notes
If you ever move /add-prestation back into the ShellRoute, the nav bar overlap on small screens needs UX review.