auto-claude/001-normalize-code-update-packages-widgetify-component #1

Merged
mathias merged 12 commits from auto-claude/001-normalize-code-update-packages-widgetify-component into main 2026-01-20 12:25:49 -05:00
Owner
No description provided.
mathias added 12 commits 2026-01-20 12:25:40 -05:00
Updated the following packages to their latest safe versions:
- go_router: ^17.0.0 -> ^17.0.1 (patch)
- shared_preferences: ^2.5.3 -> ^2.5.4 (patch)
- build_runner: ^2.4.14 -> ^2.10.5 (minor)
- json_serializable: ^6.9.2 -> ^6.11.1 (minor, capped due to analyzer conflict)
- google_navigation_flutter: ^0.7.0 -> ^0.8.2 (minor)

Note: json_serializable was capped at 6.11.1 instead of 6.11.4 due to
analyzer version conflict with riverpod_generator ^3.0.3.

Co-Authored-By: Claude <noreply@anthropic.com>
Updated flutter_riverpod dependency from ^3.0.3 to ^3.1.0.
This is a minor version update with backward-compatible changes.

Co-Authored-By: Claude <noreply@anthropic.com>
Updated riverpod_annotation from ^3.0.3 to ^4.0.0 and riverpod_generator from ^3.0.3 to ^4.0.0
to resolve version conflicts with flutter_riverpod ^3.1.0. Build runner executed successfully.

Co-Authored-By: Claude <noreply@anthropic.com>
- Add reusable NotesDialog component that extracts and displays notes from delivery orders
- Add static show() method for convenient dialog display with empty notes handling
- Add localization strings for notes dialog (EN/FR): notesTitle, noNotesMessage, close
- Follow existing dialog pattern from NavigationTermsAndConditionsDialog

Co-Authored-By: Claude <noreply@anthropic.com>
Add PhotoCaptureDialog widget component that:
- Shows captured photo preview with proper constraints
- Displays confirmation message using delivery name
- Provides Cancel and Upload action buttons
- Uses theme-aware styling with colorScheme
- Handles image loading errors gracefully
- Includes proper i18n support (EN/FR)

Added localization keys:
- confirmPhoto
- uploadPhotoConfirmation (with name placeholder)
- uploadingPhoto
- photoUploadSuccess
- photoUploadFailed
- cameraError
- uploadError
- serverError
- retake

Co-Authored-By: Claude <noreply@anthropic.com>
Extracted UnifiedDeliveryListView from deliveries_page.dart to
lib/components/unified_delivery_list.dart for better code organization
and reusability. The component provides a unified delivery list experience
supporting expanded and collapsed states for responsive sidebar layouts.

Co-Authored-By: Claude <noreply@anthropic.com>
Extracted DeliveryCard widget from deliveries_page.dart to its own
component file at lib/components/delivery_card.dart. Also fixed
unnecessary non-null assertion warnings by removing redundant '!'
operators after AppLocalizations.of(context) calls.

Co-Authored-By: Claude <noreply@anthropic.com>
- Import LoadingDialog and PhotoCaptureDialog components
- Replace inline photo confirmation dialog with PhotoCaptureDialog.show()
- Replace inline loading dialog with LoadingDialog.show() and LoadingDialog.hide()
- Use localized uploadingPhoto string for loading message

Co-Authored-By: Claude <noreply@anthropic.com>
- Replaced inline loading dialogs with LoadingDialog component
- Replaced inline notes dialog with NotesDialog component
- Replaced inline photo confirmation dialog with PhotoCaptureDialog component
- Added missing localization strings for completingDelivery, markingAsUncompleted, and deliveryMarkedUncompleted
- Fixed BuildContext usage across async gaps by capturing l10n early
- Fixed unused result warnings by using ref.invalidate instead of ref.refresh
- Removed unnecessary non-null assertions

Co-Authored-By: Claude <noreply@anthropic.com>
Removed SystemChrome.setPreferredOrientations call that was restricting
the app to landscape-only mode. The app now supports all device orientations
by using Flutter's default behavior.

Also fixed a minor lint warning by replacing (_, __) with named parameters.

Co-Authored-By: Claude <noreply@anthropic.com>
Fixed all 39 analyzer issues:
- Removed unused import (animation_system.dart in collapsible_routes_sidebar.dart)
- Removed unused element (_buildActionButton in dark_mode_map.dart)
- Fixed unnecessary non-null assertions on AppLocalizations.of(context)
- Removed unnecessary type checks in providers.dart
- Used super parameters for key in navigation_tc_dialog.dart and status_colors.dart
- Replaced print statements with debugPrint in providers.dart and logging_interceptor.dart

Co-Authored-By: Claude <noreply@anthropic.com>
mathias merged commit e0f9552cbf into main 2026-01-20 12:25:49 -05:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Plan-B/ionic-planb-logistic-app-flutter#1
No description provided.