Skip to content

Commit

Permalink
Migrate from js to js_interop. Closes #676. Closes #671.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbhanson committed Mar 17, 2024
1 parent 0081586 commit 0a12b7b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/remove_splash_from_web.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@JS()
library remove_splash_from_web;

import "package:js/js.dart";
import 'dart:js_interop';

@JS("removeSplashFromWeb")
external void removeSplashFromWeb();
5 changes: 2 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 0a12b7b

Please sign in to comment.