Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "6.0.0"
flutter_riverpod:
dependency: "direct main"
description:
Expand Down Expand Up @@ -188,10 +188,10 @@ packages:
dependency: transitive
description:
name: lints
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "6.1.0"
logging:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_lints: ^6.0.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

What are the Dart SDK and Flutter SDK constraints for flutter_lints version 6.0.0 on pub.dev, and do they exceed Dart >=3.0.0?

💡 Result:

The Dart SDK constraint for flutter_lints version 6.0.0 is ^3.8.0 [1][2]. There is no explicit Flutter SDK constraint specified in the pubspec.yaml environment section, as it is a lint package without a flutter dependency [1]. The changelog notes an update to the minimum supported SDK version to Flutter 3.32/Dart 3.8 [3]. Yes, the Dart SDK constraint ^3.8.0 exceeds Dart >=3.0.0, since Dart 3.8.0 is greater than 3.0.0.

Citations:


Update Dart SDK constraint to be compatible with flutter_lints 6.0.0.

flutter_lints 6.0.0 requires Dart SDK ^3.8.0, but the project's environment.sdk (Line 8) is set to >=3.0.0, creating an unresolvable dependency conflict. Update Line 8 to at least >=3.8.0 <4.0.0.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pubspec.yaml` at line 25, The SDK constraint in pubspec.yaml under the
environment.sdk entry is too low for flutter_lints 6.0.0; update the
environment.sdk constraint from ">=3.0.0" (or the current value) to at least
">=3.8.0 <4.0.0" so the Dart SDK requirement matches flutter_lints 6.0.0 and
resolves the conflict.


flutter:
uses-material-design: true
Expand Down
Loading