Dio
stackchain: network: dioGenerated client
Section titled “Generated client”Core networking under lib/core/network/ includes a Dio-based API client with:
| Interceptor | Role |
|---|---|
| Auth | Attaches session credentials |
| Logger | pretty_dio_logger |
| Error | Maps failures consistently |
| Retry | Retries while preserving auth headers |
| Unauthorized | Clears session on 401 |
Repository pattern
Section titled “Repository pattern”Feature remote datasources call the shared client; repository implementations sit in data/repositories and fulfill domain contracts.