diff --git a/example/pubspec.yaml b/example/pubspec.yaml
index 1284227..dd3c6bf 100644
--- a/example/pubspec.yaml
+++ b/example/pubspec.yaml
@@ -6,7 +6,7 @@ description: Demonstrates how to use the disks plugin.
 publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 
 environment:
-  sdk: ">=2.17.6 <3.0.0"
+  sdk: "<4.0.0"
 
 # Dependencies specify other packages that your package needs in order to work.
 # To automatically upgrade your package dependencies to the latest versions
diff --git a/pubspec.yaml b/pubspec.yaml
index 47523d2..46e32fb 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -6,7 +6,7 @@ issue_tracker: https://github.com/AngeloAvv/disks/issues
 homepage: https://www.angelocassano.it
 
 environment:
-  sdk: ">=2.17.6 <3.0.0"
+  sdk: "<4.0.0"
   flutter: ">=3.3.2"
 
 dependencies: