This guide will help you update synTrack dependencies to their latest versions.
- archive 3.3.7 - Has 2 security vulnerabilities (path traversal, filename spoofing)
- Current: 3.3.7
- Latest: 4.0.7
- flutter_keyboard_visibility 5.4.2 - Version retracted by publisher
- Current: 5.4.2
- Latest: 6.0.0
- build_resolvers - Discontinued (transitive dependency)
- build_runner_core - Discontinued (transitive dependency)
- js - Discontinued (transitive dependency)
-
auto_route 7.1.0 → 10.2.0 (major version change)
- Requires code changes for routing
- Check migration guide: https://pub.dev/packages/auto_route/changelog
-
flutter_bloc 8.1.2 → 9.1.1 (major version change)
- May require API changes
- Check: https://pub.dev/packages/flutter_bloc/changelog
-
hydrated_bloc 9.1.0 → 10.1.1 (major version change)
- Usually follows flutter_bloc changes
- Check: https://pub.dev/packages/hydrated_bloc/changelog
-
http 0.13.6 → 1.5.0 (major version change)
- API may have breaking changes
- Check: https://pub.dev/packages/http/changelog
-
uuid 3.0.7 → 4.5.2 (major version change)
- Check API changes: https://pub.dev/packages/uuid/changelog
-
sizer 2.0.15 → 3.1.3 (major version change)
- UI sizing library, may affect layouts
-
auto_route_generator 7.0.0 → 10.2.5
- Must match auto_route version
-
build_runner 2.4.2 → 2.10.1
- Code generation tool
-
flutter_lints 2.0.1 → 6.0.0 (major version change)
- Will add new lint rules, may require code fixes
git checkout -b dependency-upgrade
git add .
git commit -m "backup before dependency upgrade"Run automatic upgrade:
flutter pub upgrade --major-versionsflutter pub run build_runner build --delete-conflicting-outputsdart fix --applyReview these packages specifically:
- auto_route: Check routing code in
lib/router.dart - flutter_bloc: Check all Cubit and Bloc files in
lib/cubit/ - http: Check API calls in
lib/repository/data/
flutter clean
flutter pub get
flutter run -d macosflutter analyzeMajor changes in v10:
- Router generation syntax changed
- Navigation API updates
- Check file:
lib/router.dart
Before:
@MaterialAutoRouter(...)After:
@AutoRouterConfig()- Minimal breaking changes expected
- Check
context.read()andcontext.watch()usage
- Check import statements
- Response handling may have changed
After migration, test:
- App builds without errors
- All routes navigate correctly
- Time tracking works
- Booking to Redmine works
- Booking to ERPNext works
- Settings save/load correctly
- Filter functionality works
- Theme switching works
If migration fails:
git checkout main
git branch -D dependency-upgradeInstead of upgrading all at once, upgrade in phases:
dependency_overrides:
archive: ^4.0.7
flutter_keyboard_visibility: ^6.0.0flutter pub upgradeUpdate auto_route first (biggest change):
dependencies:
auto_route: ^10.2.0
dev_dependencies:
auto_route_generator: ^10.2.5Then update bloc packages, then others.
- Quick security fix: 30 minutes
- Full migration: 4-8 hours (including testing)
- Gradual migration: 2-3 days (safer approach)
- Flutter migration guides: https://docs.flutter.dev/release/breaking-changes
- Package changelogs on pub.dev
- auto_route migration: https://pub.dev/packages/auto_route#migration-guides