ionic-planb-logistic-app-fl.../lib/models/delivery_commands.dart
Claude Code 4b03e9aba5 Initial commit: Plan B Logistics Flutter app with dark mode and responsive design
Implements complete refactor of Ionic Angular logistics app to Flutter/Dart with:
- Svrnty dark mode console theme (Material Design 3)
- Responsive layouts (mobile, tablet, desktop) following FRONTEND standards
- CQRS API integration with Result<T> error handling
- OAuth2/OIDC authentication support (mocked for initial testing)
- Delivery route and delivery management features
- Multi-language support (EN/FR) with i18n
- Native integrations (camera, phone calls, maps)
- Strict typing throughout codebase
- Mock data for UI testing without backend

Follows all FRONTEND style guides, design patterns, and conventions.
App is running in dark mode and fully responsive across all device sizes.

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 04:58:10 -04:00

60 lines
1.1 KiB
Dart

import '../api/types.dart';
class CompleteDeliveryCommand implements Serializable {
final int deliveryId;
final String? deliveredAt;
const CompleteDeliveryCommand({
required this.deliveryId,
this.deliveredAt,
});
@override
Map<String, Object?> toJson() => {
'deliveryId': deliveryId,
'deliveredAt': deliveredAt,
};
}
class MarkDeliveryAsUncompletedCommand implements Serializable {
final int deliveryId;
const MarkDeliveryAsUncompletedCommand({
required this.deliveryId,
});
@override
Map<String, Object?> toJson() => {
'deliveryId': deliveryId,
};
}
class UploadDeliveryPictureCommand implements Serializable {
final int deliveryId;
final String filePath;
const UploadDeliveryPictureCommand({
required this.deliveryId,
required this.filePath,
});
@override
Map<String, Object?> toJson() => {
'deliveryId': deliveryId,
'filePath': filePath,
};
}
class SkipDeliveryCommand implements Serializable {
final int deliveryId;
const SkipDeliveryCommand({
required this.deliveryId,
});
@override
Map<String, Object?> toJson() => {
'deliveryId': deliveryId,
};
}