Balance Screen
balance/views/balance_screen.dart
Overview
Header showing available + pending balance, transactions list below, tap-to-open detail bottom sheet. Pull-to-refresh re-invokes loadAll.
User Flow
- Watches balanceControllerProvider.
- Header animates the balance count-up on first load.
- Each TransactionRow → loadTransactionDetails(id) and shows TransactionDetailSheet.
- Empty state when transactions list is empty after loading.
Cases & Edge Cases
- Balance widget shows EUR by default; multi-currency carriers would need a tab or currency selector.
- Sheet reuses showModalBottomSheet; tapping outside dismisses it without resetting selectedTransactionDetail.
Code References
- lib/src/features/seller/balance/views/balance_screen.dart
- lib/src/features/seller/balance/widgets/transaction_detail_sheet.dart
API Calls
Empty — fill this in later. Open the manifest and add content here.
Notes
Animated count-up uses a TweenAnimationBuilder so swap doesn't visually 'flicker' on refresh.