Adds ApiModeConfig class with support for selecting API transport mode: - ApiMode enum (http, grpc) - Static configurations: development (HTTP), developmentGrpc, production, productionGrpc - fallbackToHttpOnError option for graceful degradation Creates unified deliveryRoutesProvider and deliveriesProvider that: - Respect apiModeConfigProvider for transport selection - Automatically delegate to gRPC or HTTP providers - Fall back to HTTP on gRPC failures when configured To enable gRPC, override apiModeConfigProvider with ApiModeConfig.developmentGrpc in the ProviderScope. Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| components | ||
| generated | ||
| l10n | ||
| models | ||
| pages | ||
| providers | ||
| services | ||
| theme | ||
| utils | ||
| main.dart | ||
| theme.dart | ||