arch-atlas

Balance Screen

balance/views/balance_screen.dart

presentation

Overview

Header showing available + pending balance, transactions list below, tap-to-open detail bottom sheet. Pull-to-refresh re-invokes loadAll.

User Flow

  1. Watches balanceControllerProvider.
  2. Header animates the balance count-up on first load.
  3. Each TransactionRow → loadTransactionDetails(id) and shows TransactionDetailSheet.
  4. 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.