fix: apply post-review fixes to project setup

- analysis_options.yaml: activate custom_lint plugin (analyzer.plugins)
  without this riverpod_lint/drift_lint rules were silently ignored
- pubspec.yaml: bump stale major constraints to latest resolvable versions
  go_router ^14 -> ^17 (resolved 17.1.0)
  flutter_local_notifications ^17 -> ^21 (resolved 21.0.0)
  flutter_lints ^5 -> ^6 (resolved 6.0.0)
- CLAUDE.md: correct go_router version note and tech stack entries

flutter analyze: no issues, flutter test: 1/1 passed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
TrochtaOndrej
2026-03-17 08:23:56 +01:00
parent 043ee213f7
commit ae28e7ffd8
4 changed files with 33 additions and 21 deletions
+4 -4
View File
@@ -8,9 +8,9 @@ KittieMobile is an ADHD-friendly task manager with a virtual pet companion. User
- **State Management**: Riverpod 3.x (`flutter_riverpod` + `riverpod_annotation` + `riverpod_generator`) - **State Management**: Riverpod 3.x (`flutter_riverpod` + `riverpod_annotation` + `riverpod_generator`)
- **Local Database**: Drift 2.x (SQLite, offline-first; mirrors the PostgreSQL schema) - **Local Database**: Drift 2.x (SQLite, offline-first; mirrors the PostgreSQL schema)
- **Animations**: Rive 0.14.x (pet animations via `.riv` files in `assets/animations/`) - **Animations**: Rive 0.14.x (pet animations via `.riv` files in `assets/animations/`)
- **Navigation**: go_router 14.x+ - **Navigation**: go_router 17.x
- **Fonts**: Google Fonts (Lexend, Atkinson Hyperlegible) - **Fonts**: Google Fonts (Lexend, Atkinson Hyperlegible)
- **Notifications**: flutter_local_notifications 17.x+ - **Notifications**: flutter_local_notifications 21.x
- **Remote Sync**: `http` package to backend REST API at `localhost:8090` - **Remote Sync**: `http` package to backend REST API at `localhost:8090`
## Architecture ## Architecture
@@ -118,7 +118,7 @@ Energy levels: `1` = low, `2` = medium, `3` = high
- drift: ^2.22.0 (2.32.0) - drift: ^2.22.0 (2.32.0)
- drift_flutter: ^0.2.0 (0.3.0) - drift_flutter: ^0.2.0 (0.3.0)
- drift_dev: ^2.22.0 (2.32.0) - drift_dev: ^2.22.0 (2.32.0)
- go_router: ^14.0.0 (17.1.0 latest, constraint allows resolution to latest compatible) - go_router: ^17.0.0 (17.1.0)
- rive: ^0.14.0 (0.14.4) - rive: ^0.14.0 (0.14.4)
- google_fonts: ^8.0.0 (8.0.2) - google_fonts: ^8.0.0 (8.0.2)
- flutter_local_notifications: ^17.0.0 (21.0.0 latest) - flutter_local_notifications: ^21.0.0 (21.0.0)
+4
View File
@@ -9,6 +9,10 @@
# packages, and plugins designed to encourage good coding practices. # packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml include: package:flutter_lints/flutter.yaml
analyzer:
plugins:
- custom_lint
linter: linter:
# The lint rules applied to this project can be customized in the # The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml` # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+22 -14
View File
@@ -314,34 +314,42 @@ packages:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: flutter_lints name: flutter_lints
sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "5.0.0" version: "6.0.0"
flutter_local_notifications: flutter_local_notifications:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_local_notifications name: flutter_local_notifications
sha256: "674173fd3c9eda9d4c8528da2ce0ea69f161577495a9cc835a2a4ecd7eadeb35" sha256: "0d9035862236fe38250fe1644d7ed3b8254e34a21b2c837c9f539fbb3bba5ef1"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "17.2.4" version: "21.0.0"
flutter_local_notifications_linux: flutter_local_notifications_linux:
dependency: transitive dependency: transitive
description: description:
name: flutter_local_notifications_linux name: flutter_local_notifications_linux
sha256: c49bd06165cad9beeb79090b18cd1eb0296f4bf4b23b84426e37dd7c027fc3af sha256: e0f25e243c6c44c825bbbc6b2b2e76f7d9222362adcfe9fd780bf01923c840bd
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.0.1" version: "8.0.0"
flutter_local_notifications_platform_interface: flutter_local_notifications_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: flutter_local_notifications_platform_interface name: flutter_local_notifications_platform_interface
sha256: "85f8d07fe708c1bdcf45037f2c0109753b26ae077e9d9e899d55971711a4ea66" sha256: e7db3d5b49c2b7ecc68deba4aaaa67a348f92ee0fef34c8e4b4459dbef0d7307
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "7.2.0" version: "11.0.0"
flutter_local_notifications_windows:
dependency: transitive
description:
name: flutter_local_notifications_windows
sha256: "3a2654ba104fbb52c618ebed9def24ef270228470718c43b3a6afcd5c81bef0c"
url: "https://pub.dev"
source: hosted
version: "3.0.0"
flutter_riverpod: flutter_riverpod:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -388,10 +396,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: go_router name: go_router
sha256: f02fd7d2a4dc512fec615529824fdd217fecb3a3d3de68360293a551f21634b3 sha256: "7974313e217a7771557add6ff2238acb63f635317c35fa590d348fb238f00896"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "14.8.1" version: "17.1.0"
google_fonts: google_fonts:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -484,10 +492,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: lints name: lints
sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7 sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "5.1.1" version: "6.1.0"
logging: logging:
dependency: transitive dependency: transitive
description: description:
@@ -961,10 +969,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: timezone name: timezone
sha256: "2236ec079a174ce07434e89fcd3fcda430025eb7692244139a9cf54fdcf1fc7d" sha256: "784a5e34d2eb62e1326f24d6f600aaaee452eb8ca8ef2f384a59244e292d158b"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.9.4" version: "0.11.0"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
+3 -3
View File
@@ -26,10 +26,10 @@ dependencies:
google_fonts: ^8.0.0 google_fonts: ^8.0.0
# Navigation # Navigation
go_router: ^14.0.0 go_router: ^17.0.0
# Notifications # Notifications
flutter_local_notifications: ^17.0.0 flutter_local_notifications: ^21.0.0
# Storage # Storage
path_provider: ^2.1.0 path_provider: ^2.1.0
@@ -44,7 +44,7 @@ dependencies:
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_lints: ^5.0.0 flutter_lints: ^6.0.0
build_runner: ^2.4.0 build_runner: ^2.4.0
riverpod_generator: ^4.0.0 riverpod_generator: ^4.0.0
drift_dev: ^2.22.0 drift_dev: ^2.22.0