Balance + Bank Account Routes
core/routing/app_router.dart · /balance + /bank-account
Overview
Two GoRoutes inside the ShellRoute: /balance → BalanceScreen, /bank-account → BankAccountScreen. Both seller-only; the auth redirect bounces clients to /home.
User Flow
- Seller profile menu links to /balance and /bank-account.
- If a user without seller role deep-links, redirect kicks them back to /home.
Cases & Edge Cases
- /balance is read-only — no destructive actions can happen here.
- /bank-account is destructive — leaving mid-step preserves state via the Notifier; navigating away from the app entirely re-runs loadPayoutAccount on return.
Code References
- lib/src/core/routing/app_router.dart:478 // /bank-account
- lib/src/core/routing/app_router.dart:484 // /balance
API Calls
Empty — fill this in later. Open the manifest and add content here.
Notes
If we extend to a tax-document screen, slot it next to /balance with the same role gate.