How fahad2bhatti/dobara works
Dobara is a Flutter marketplace for pre-loved fashion. Buyers browse condition-graded listings, add items to a persisted cart, provide delivery details, and place Cash-on-Delivery orders; the Cloud Function fetches listing data server-side before writing an order. Other major branches include authentication, reviews, notifications, trust and safety, and admin operations. README and the file tree support these capabilities; Dart implementations were not sampled, so internal calls beyond the documented order flow are not drawn.
Main entry points: app_router.dart App routing · checkout_screen.dart Checkout · index.js Place-order function · notifications Notifications
Components 21
Buyer marketplace
- Flutter app
lib/main.dart - App routing
lib/core/router/app_router.dart - Browse listings
lib/features/listings/presentation - Listing state
lib/features/listings/domain/listings_provider.dart - Cart
lib/features/cart/presentation - Cart persistence
lib/features/cart/data/cart_repository.dart - Checkout
lib/features/checkout/presentation/screens/checkout_screen.dart - Delivery addresses
lib/features/addresses/data/addresses_repository.dart - Order history
lib/features/orders
Identity and account
- Authentication
lib/features/auth - Firebase auth service
lib/core/services/firebase_auth_service.dart
Trust and administration
- Reviews
lib/features/reviews - Listing reports
lib/features/listings/presentation/widgets/report_sheet.dart - Admin operations
lib/features/admin - Notifications
lib/features/notifications
Backend and integrations
- Cloud Firestore
- Place-order function
functions/index.js - Cloudinary uploads
- Image upload service
lib/core/services/storage_service.dart - Firebase Cloud Messaging
Other components
- Buyer
Connections 23
- Buyer → Flutter app: uses
- Flutter app → App routing: routes through
- App routing → Browse listings: opens
- App routing → Cart: opens
- App routing → Checkout: opens
- Browse listings → Listing state: loads listings
- Listing state → Cloud Firestore: reads catalog
- Cart → Cart persistence: updates cart
- Cart persistence → Cloud Firestore: persists cart
- Checkout → Delivery addresses: uses address
- Checkout → Place-order function: requests order
- Place-order function → Cloud Firestore: reads listings
- Place-order function → Cloud Firestore: writes order
- App routing → Authentication: opens
- Authentication → Firebase auth service: authenticates
- Firebase auth service → Cloud Firestore: uses Firebase
- Order history → Cloud Firestore: tracks orders
- Reviews → Cloud Firestore: stores reviews
- Listing reports → Cloud Firestore: submits reports
- Admin operations → Cloud Firestore: manages data
- Notifications → Cloud Firestore: loads notifications
- Image upload service → Cloudinary uploads: uploads images
- Notifications → Firebase Cloud Messaging: uses messaging