diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f3cb4d..a933b65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ +## [2.4.0] - (2024-Mar-17) + +- Migrate from [js](https://pub.dev/packages/js) to [js_interop](https://dart.dev/interop/js-interop). Closes [#676](https://github.com/jonbhanson/flutter_native_splash/issues/676). Closes [#671](https://github.com/jonbhanson/flutter_native_splash/issues/671). + ## [2.3.13] - (2024-Feb-18) -- Added better exception handling based on [this comment](https://github.com/jonbhanson/flutter_native_splash/issues/643#issuecomment-1938416308). Thanks [BujusKrachus](https://github.com/BujusKrachus) for the detailed explanation. +- Added better exception handling based on [this comment](https://github.com/jonbhanson/flutter_native_splash/issues/643#issuecomment-1938416308). Thanks [BujusKrachus](https://github.com/BujusKrachus) for the detailed explanation. ## [2.3.12] - (2024-Feb-18) -- Fix incorrect rejection of parameter values. Fixes [#652](https://github.com/jonbhanson/flutter_native_splash/issues/652). +- Fix incorrect rejection of parameter values. Fixes [#652](https://github.com/jonbhanson/flutter_native_splash/issues/652). - Updated dependencies. ## [2.3.11] - (2024-Feb-14) diff --git a/README.md b/README.md index 78ddc7f..6e74765 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ First, add `flutter_native_splash` as a dependency in your pubspec.yaml file. ```yaml dependencies: - flutter_native_splash: ^2.3.13 + flutter_native_splash: ^2.4.0 ``` Don't forget to `flutter pub get`. diff --git a/example/pubspec.lock b/example/pubspec.lock index 1df0612..507dadf 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -124,7 +124,7 @@ packages: path: ".." relative: true source: path - version: "2.3.12" + version: "2.4.0" flutter_test: dependency: "direct dev" description: flutter diff --git a/lib/remove_splash_from_web.dart b/lib/remove_splash_from_web.dart index 5035b54..968e7e4 100644 --- a/lib/remove_splash_from_web.dart +++ b/lib/remove_splash_from_web.dart @@ -1,7 +1,7 @@ @JS() library remove_splash_from_web; -import "package:js/js.dart"; +import 'dart:js_interop'; @JS("removeSplashFromWeb") external void removeSplashFromWeb(); diff --git a/pubspec.yaml b/pubspec.yaml index 819b36d..3f23ffc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,12 +1,12 @@ name: flutter_native_splash description: Customize Flutter's default white native splash screen with background color and splash image. Supports dark mode, full screen, and more. -version: 2.3.13 +version: 2.4.0 repository: https://github.com/jonbhanson/flutter_native_splash issue_tracker: https://github.com/jonbhanson/flutter_native_splash/issues environment: - sdk: '>=2.19.0 <4.0.0' + sdk: '>=3.0.0 <4.0.0' flutter: ">=2.5.0" dependencies: @@ -15,7 +15,6 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - js: ^0.7.1 html: ^0.15.4 image: ^4.1.7 meta: ^1.11.0